3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { private $x = 1; } $f = new Foo; var_export($f); $x = var_export($f, true); eval("$x;");
Output for rfc.property-hooks, git.master, git.master_jit
\Foo::__set_state(array( 'x' => 1, )) Fatal error: Uncaught Error: Call to undefined method Foo::__set_state() in /in/X9BCL(14) : eval()'d code:1 Stack trace: #0 /in/X9BCL(14): eval() #1 {main} thrown in /in/X9BCL(14) : eval()'d code on line 1
Process exited with code 255.

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:
41.33 ms | 1509 KiB | 4 Q