3v4l.org

run code in 300+ PHP versions simultaneously
<?php $txt = "22.300859182388606 -127.66133104264736 1528577039 22.30103320995603 -127.66234927624464 1528577041 22.300184137952726 -127.661628767848 1528577042 22.29943548054545 -127.66242001950741 1528577045"; $find = "22.300184137952726 -127.661628767848"; // third line Echo preg_replace("/". $find . ".*\n/", "", $txt);

preferences:
26.2 ms | 404 KiB | 5 Q