3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = array('foo', 'bar'); var_dump(iterator_to_array($foo));

preferences:
49.87 ms | 402 KiB | 5 Q