3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "hello this is a space"; var_export( preg_split('/.*\S\K +/', $str) );

preferences:
29.42 ms | 404 KiB | 5 Q