3v4l.org

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