3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $Path = "/test-gallery/2/"; // string $urlpieces = explode("/", $Path); print_r($urlpieces);
Output for 4.3.0 - 7.1.0
Array ( [0] => [1] => test-gallery [2] => 2 [3] => )