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']{'foo'}['foo'];
Output for 4.3.0 - 7.1.0
bar