3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $foo = 'bar'; function __construct() { $this->mememe = $this; } } $foo = new Foo; print_r($foo); var_dump($foo); var_export($foo);
Output for git.master, git.master_jit, rfc.property-hooks
Deprecated: Creation of dynamic property Foo::$mememe is deprecated in /in/LIk8U on line 7 Foo Object ( [foo] => bar [mememe] => Foo Object *RECURSION* ) object(Foo)#1 (2) { ["foo"]=> string(3) "bar" ["mememe"]=> *RECURSION* } Warning: var_export does not handle circular references in /in/LIk8U on line 14 \Foo::__set_state(array( 'foo' => 'bar', 'mememe' => NULL, ))

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