3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $subject = 'long/url/right/here/no/kidding'; $whut = preg_split('/\//', $subject); var_dump($whut);
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
array(6) { [0]=> string(4) "long" [1]=> string(3) "url" [2]=> string(5) "right" [3]=> string(4) "here" [4]=> string(2) "no" [5]=> string(7) "kidding" }