3v4l.org

run code in 300+ PHP versions simultaneously
<?php $strOne = "Place new content here: , but not past the commma."; $strTwo = "test content"; echo preg_replace('/,/', "$strTwo,", $strOne, 1);

preferences:
87.22 ms | 1113 KiB | 5 Q