3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo1 = new stdClass(); $foo1->bar = 'test1'; $foo1->baz = 'test2'; $foo2 = new stdClass(); $foo2->baz = 'test2'; $foo2->bar = 'test1'; var_dump($foo1); var_dump(serialize($foo1)); var_dump($foo2); var_dump(serialize($foo2));
Output for git.master, git.master_jit, rfc.property-hooks
object(stdClass)#1 (2) { ["bar"]=> string(5) "test1" ["baz"]=> string(5) "test2" } string(63) "O:8:"stdClass":2:{s:3:"bar";s:5:"test1";s:3:"baz";s:5:"test2";}" object(stdClass)#2 (2) { ["baz"]=> string(5) "test2" ["bar"]=> string(5) "test1" } string(63) "O:8:"stdClass":2:{s:3:"baz";s:5:"test2";s:3:"bar";s:5:"test1";}"

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