I wish there was a sub keyword that would make the code below print value on execution. There isn\'t though and I wonder - is there an existing way to
sub
value
I think you are looking for static::$variable. That's called Late Static Binding and is available as of PHP 5.3.
static::$variable