3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new stdClass(); $a->foo = new stdClass(); $a->foo->bar = new stdClass(); $a->foo->ber = 'BEER'; $a->faa = 'AAAA'; $a->fee = 'EEEE'; var_dump($a); $toarray = (array)$a; var_dump($a);
Output for git.master, git.master_jit, rfc.property-hooks
object(stdClass)#1 (3) { ["foo"]=> object(stdClass)#2 (2) { ["bar"]=> object(stdClass)#3 (0) { } ["ber"]=> string(4) "BEER" } ["faa"]=> string(4) "AAAA" ["fee"]=> string(4) "EEEE" } object(stdClass)#1 (3) { ["foo"]=> object(stdClass)#2 (2) { ["bar"]=> object(stdClass)#3 (0) { } ["ber"]=> string(4) "BEER" } ["faa"]=> string(4) "AAAA" ["fee"]=> string(4) "EEEE" }

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