3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php print_r(preg_split('#[\\\\/]#', "/test/foo/bar", -1, PREG_SPLIT_NO_EMPTY));
Output for 4.3.0 - 7.1.0
Array ( [0] => test [1] => foo [2] => bar )