3v4l.org

run code in 500+ PHP versions simultaneously
<?php $string = "one two three four five"; [$part1, $part2] = preg_split('/.*\K /', $string); var_export($part1); echo "\n"; var_export($part2);

preferences:
29.69 ms | 1399 KiB | 5 Q