3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?hh function test() { $items = [1, 2, 3]; foreach ($items as &$v) { } unset($v); }
based on kECnd
Output for 5.6.0 - 7.1.0
Parse error: syntax error, unexpected 'function' (T_FUNCTION) in /in/6st1c on line 3
Process exited with code 255.