3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test1 = array_fill(1, 10, rand(1,50)); $test2 = array_fill(1, 10, rand(1,50)); $test1 = array_replace($test1, $test2);

preferences:
30 ms | 402 KiB | 5 Q