3v4l.org

run code in 300+ PHP versions simultaneously
<?php $first = "Pass"; $second = "Jacks Inventory"; $third = "First Second Third etc"; $string = $first . " " . $second . " " . $third; echo preg_replace("/s\b/", "n", $string);

preferences:
27.4 ms | 402 KiB | 5 Q