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);

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
157.55 ms | 1727 KiB | 9 Q