3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = array(1,2,3); print_r($test); function foo($test) { foreach($test as &$test_i) { $test_i++; } } print_r($test); echo $test; ?>

preferences:
36.27 ms | 402 KiB | 5 Q