3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str = trim("asdafsfdfsfd4234-24/dasda-6565/gfdgdfg-9gfdg-gfdgfdgdf/", "/"); echo $str; var_dump(preg_split("/[\s\/]+/", $str)); ?>
Output for 4.3.0 - 7.1.0
asdafsfdfsfd4234-24/dasda-6565/gfdgdfg-9gfdg-gfdgfdgdfarray(3) { [0]=> string(19) "asdafsfdfsfd4234-24" [1]=> string(10) "dasda-6565" [2]=> string(23) "gfdgdfg-9gfdg-gfdgfdgdf" }