3v4l.org

run code in 300+ PHP versions simultaneously
<?php $myarray = ["test", "test2", "test3"]; var_export( substr_replace($myarray, ' ', 0, 0) );
Output for 7.0.33, 8.1.0 - 8.1.34, 8.2.0 - 8.2.30, 8.3.0 - 8.3.30, 8.4.1 - 8.4.18, 8.5.0 - 8.5.3
array ( 0 => ' test', 1 => ' test2', 2 => ' test3', )

preferences:
83.33 ms | 990 KiB | 4 Q