3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array ('zero','one','two', 'three'); foreach ($a as &$v) { echo $v.PHP_EOL; } echo $v.PHP_EOL; print_r($a); foreach ($a as $v) { echo $v.PHP_EOL; }
based on MdYg2
Output for 5.6.0 - 5.6.30, hhvm-3.18.5 - 3.22.0, 7.0.0 - 7.3.0beta1
zero one two three three Array ( [0] => zero [1] => one [2] => two [3] => three ) zero one two two