3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test(&$test_arr) { $test_arr[] = 'taco'; } $some_arr = array(); test($some_arr); print_r($some_arr);

preferences:
37.43 ms | 402 KiB | 5 Q