3v4l.org

run code in 300+ PHP versions simultaneously
<?php const A = ["a", "aa", "aaa"]; const B = ["b", "bb"]; const C = ["c"]; const D = ["ree", "reeeee", ...B, ...C]; print_r(D);
Output for 8.1.0 - 8.1.29, 8.2.0 - 8.2.20, 8.3.0 - 8.3.8
Array ( [0] => ree [1] => reeeee [2] => b [3] => bb [4] => c )

preferences:
66.57 ms | 402 KiB | 65 Q