3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $list = array("A", "B", "C","D"); reset($list); foreach ($list as $var) { echo current(&$list) . "($var)"; }
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.4.0 - 5.4.11
Fatal error: Call-time pass-by-reference has been removed in r89nR on line 5
Process exited with code 255.
Output for 5.3.22 - 5.3.29
Deprecated: Call-time pass-by-reference has been deprecated in /in/r89nR on line 5 B(A)B(B)B(C)B(D)
Output for 5.3.0 - 5.3.21
Deprecated: Call-time pass-by-reference has been deprecated in r89nR on line 5 B(A)B(B)B(C)B(D)