3v4l.org

run code in 300+ PHP versions simultaneously
<?php $object = new stdClass; $object->property1 = 'property 1'; $object->property2 = 'property 2'; $array = array( array('pear', 'apple'), array('banana', 'coconut'), 'orange', // This is not an array element $object ); $iterator = new RecursiveArrayIterator($array); foreach(new RecursiveIteratorIterator($iterator) as $value) { echo $value . PHP_EOL; }
Output for git.master, git.master_jit, rfc.property-hooks
pear apple banana coconut orange property 1 property 2

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