3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array = ['x', 'y', 'z']; foreach($array as $element) { $array[2] = 'a'; if ($element=='x') { } print $element; }
Output for 5.4.0 - 5.4.45
xyz