3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $path1 = '/etc/passwd/dfdf/aaa'; $path2 = 'etc/passwd/dfdf/aaa'; print_r(preg_split('|/|', $path1, null, PREG_SPLIT_NO_EMPTY));
Output for 4.3.0 - 7.1.0
Array ( [0] => etc [1] => passwd [2] => dfdf [3] => aaa )