3v4l.org

run code in 300+ PHP versions simultaneously
<?php //Create an array $array=array('a','b','c','d','e','f','g'); //Loop over the array by reference foreach($array as &$a){ } //Loop again over the array foreach($array as $a){ } //Print the array print_r($array);

preferences:
41.03 ms | 402 KiB | 5 Q