3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array('zero', 'one', 'two'); $b = 'test'; foreach ($a as $b) {} print_r($a);
Output for 4.3.0 - 7.1.0
Array ( [0] => zero [1] => one [2] => two )