3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $x = 10; $foo = null; $ref = &$foo; do { $ref = array('foo' => 'bar'); $ref = &$ref['foo']; } while (--$x); echo $foo{'foo'}['foo']{'foo'}['foo']{'foo'}['foo']{'foo'}['foo'];
Output for 5.4.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
Notice: Array to string conversion in /in/ZNuMS on line 11 Array
Output for hhvm-3.10.0

Process exited with code 153.
Output for 4.3.0 - 5.3.29
Array