3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = array(3502, 3503); $array2 = array(3503, 3504); $array3 = array_replace($array1, $array2); print_r($array3);
Output for 7.3.0 - 7.3.30, 7.4.0 - 7.4.23, 8.0.0 - 8.0.11, 8.1rc1 - rc2
Array ( [0] => 3503 [1] => 3504 )

preferences:
35.79 ms | 532 KiB | 16 Q