3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arr = [ 'A', 'B', 'C', 'D']; foreach ($arr as &$item) { $item = "E"; } var_dump($arr);