3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = array( 'property1' => 'value1', 'property200' => new ArrayIterator(array('test' => 'test'))); var_dump(spl_object_hash($data['property200'])); function test($data) { foreach ($data as $key => $prop) { if (is_object($data)) { var_dump(spl_object_hash($data)); } var_dump($key, $prop); if ($prop instanceof ArrayIterator) { test($prop); } } } test($data);
Output for git.master, git.master_jit, rfc.property-hooks
string(32) "00000000000000010000000000000000" string(9) "property1" string(6) "value1" string(11) "property200" object(ArrayIterator)#1 (1) { ["storage":"ArrayIterator":private]=> array(1) { ["test"]=> string(4) "test" } } string(32) "00000000000000010000000000000000" string(4) "test" string(4) "test"

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