3v4l.org

run code in 300+ 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:
37.6 ms | 405 KiB | 5 Q