3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $original_string = 'The brown fox'; $string_to_insert ='quick'; $insert_pos = 4; $new_string = substr_replace($original_string, $string_to_insert.' ', $insert_pos, 0); echo $new_string; ?>
Output for 4.3.0 - 7.2.0
The quick brown fox