3v4l.org

run code in 300+ PHP versions simultaneously
<?phpfunction getCatalog($path, $number) { $catalogs = explode('/', $path); return $catalogs[count($catalogs) - $number - 1];}echo getCatalog('/a/b/c/d/e/f/g/h/i', 4);

This is an error 404

There are `0` results


preferences:
138.42 ms | 1399 KiB | 7 Q