3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo $foo; class testing { public $prop = 'property'; } $t = new testing(); echo "Normal prop: ".$t->prop."\n"; echo "Dynamic prop: ".$t->prop2."\n"; $t->prop2 = 'dynamic prop'; echo "Dynamic prop: ".$t->prop2."\n";
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined variable $foo in /in/dgOYV on line 3 Normal prop: property Warning: Undefined property: testing::$prop2 in /in/dgOYV on line 11 Dynamic prop: Deprecated: Creation of dynamic property testing::$prop2 is deprecated in /in/dgOYV on line 12 Dynamic prop: dynamic prop

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:
25.76 ms | 406 KiB | 5 Q