3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array( 'dingo', 'wombat', 'wallaby' ); $it = new ArrayIterator( $array ); print_r($it); print_r($array); echo array($it);
Output for git.master, git.master_jit, rfc.property-hooks
ArrayIterator Object ( [storage:ArrayIterator:private] => Array ( [0] => dingo [1] => wombat [2] => wallaby ) ) Array ( [0] => dingo [1] => wombat [2] => wallaby ) Warning: Array to string conversion in /in/XNX3S on line 10 Array

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.02 ms | 402 KiB | 8 Q