3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array = array(1,2,3,4); foreach($array as $key => $value) { $value = &$array[$key]; echo current($array); }
Output for 4.3.0 - 5.2.3, 7.0.0 - 7.3.0beta1
1222
Output for 5.2.4 - 5.6.28
2233