3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { private $bar; private $baz; public function __construct($bar, $baz) { $this->bar = $bar; $this->baz = $baz; } public function __debugInfo() { return ['bar' => $this->bar]; } } $foo = new Foo('abc', 'def'); var_dump(debug_zval_dump($foo)); echo var_export($foo);
Output for git.master, rfc.property-hooks
object(Foo)#1 (1) refcount(2){ ["bar"]=> string(3) "abc" interned } NULL \Foo::__set_state(array( 'bar' => 'abc', 'baz' => 'def', ))
Output for git.master_jit
object(Foo)#1 (1) refcount(2){ ["bar"]=> string(3) "abc" refcount(3) } NULL \Foo::__set_state(array( 'bar' => 'abc', 'baz' => 'def', ))

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:
61.69 ms | 401 KiB | 8 Q