3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "This is my test case for an example."; var_export( preg_split( "/(?=(\S+ \S+))\S+ (?:\S+$)?/", $string, 0, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY ) );

preferences:
31.01 ms | 405 KiB | 5 Q