3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyClass { public $var = 'Gump'; } $obj = new MyClass; $obj->var = 'Bubba'; $obj->over = 'Something'; $new = new $obj; //$new->var = 'Bubba'; var_dump($obj, $new);
Output for git.master, git.master_jit, rfc.property-hooks
Deprecated: Creation of dynamic property MyClass::$over is deprecated in /in/BCpDX on line 9 object(MyClass)#1 (2) { ["var"]=> string(5) "Bubba" ["over"]=> string(9) "Something" } object(MyClass)#2 (1) { ["var"]=> string(4) "Gump" }

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:
32.04 ms | 402 KiB | 8 Q