3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { static public $static_property; public $instance_property; public function instance_method() { echo $this->instance_property; } public static function static_method() { echo self::$static_property; } } Foo::$static_property = "static foo!<br>\n"; echo Foo::static_method(); $foo = new Foo(); $foo->instance_property = "instance property!<br>\n"; echo $foo->instance_method();
Output for git.master, git.master_jit, rfc.property-hooks
static foo!<br> instance property!<br>

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
40.81 ms | 405 KiB | 9 Q