3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array = array('bg','bd', 'bt'); foreach ($array as $id => $a) { //$a = 'a'; unset($a); } $a = 'g'; print_r($array); ?>
Output for 4.3.0 - 7.1.0
Array ( [0] => bg [1] => bd [2] => bt )