3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { private $bar = 'baz'; private $xyz = 'www'; } $f = new Foo(); var_dump(key($f)); var_dump(current($f)); var_dump(next($f)); var_dump(key($f)); var_dump(current($f));
Output for git.master, git.master_jit, rfc.property-hooks
Deprecated: key(): Calling key() on an object is deprecated in /in/JtStv on line 10 string(8) "Foobar" Deprecated: current(): Calling current() on an object is deprecated in /in/JtStv on line 11 string(3) "baz" Deprecated: next(): Calling next() on an object is deprecated in /in/JtStv on line 12 string(3) "www" Deprecated: key(): Calling key() on an object is deprecated in /in/JtStv on line 13 string(8) "Fooxyz" Deprecated: current(): Calling current() on an object is deprecated in /in/JtStv on line 14 string(3) "www"

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