3v4l.org

run code in 200+ PHP versions simultaneously
<?php $extra = ['arg3', 'arg4', 'arg5']; var_dump(['arg1', 'arg2'] + $extra);
based on RpucU
Output for 7.1.0 - 7.4.0
array(3) { [0]=> string(4) "arg1" [1]=> string(4) "arg2" [2]=> string(4) "arg5" }