3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str = ":Profash!~Ryan@profash.me PRIVMSG #tee !test 123 lol"; $input = explode(' ', $str); print_r(array_slice($input, 3)); print_r(array_slice($input, 2));
based on nFNHN
Output for 4.3.0 - 7.2.0
Array ( [0] => !test [1] => 123 [2] => lol ) Array ( [0] => #tee [1] => !test [2] => 123 [3] => lol )