3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $path = "\\/var\\/www\\/resources\\/"; $pathChunks = explode("\/", $path); if($pathChunks[count($pathChunks) -1]) print_r($pathChunks); ?>
Output for 5.2.15 - 7.1.0