3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "Hello fri3nd, you're looking good today! What a Great day this is! How fancy and cool!"; var_export(preg_split('/(?:\S+\K +){3}/', $str));

preferences:
25.57 ms | 405 KiB | 5 Q