3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "Please ask your questions after the session is finished."; echo preg_replace('~(?:^\S+ \S+ |\G(?!^))\S+\K ~', "\n", $string);

preferences:
25.97 ms | 404 KiB | 5 Q