3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = ['a','b','c']; foreach ($arr as $dummy) { $arr = [1,2,3]; var_dump($dummy); } var_dump($arr);

preferences:
40.9 ms | 407 KiB | 5 Q