3v4l.org

run code in 300+ PHP versions simultaneously
<?php $myarray = ["test", "test2", "test3"]; var_export( substr_replace($myarray, ' ', 0, 0) );
Output for 8.1.0 - 8.1.28, 8.2.0 - 8.2.19, 8.3.0 - 8.3.7
array ( 0 => ' test', 1 => ' test2', 2 => ' test3', )

preferences:
59.62 ms | 402 KiB | 62 Q