3v4l.org

run code in 300+ PHP versions simultaneously
<?php $path = "\/var\/www\/resources\/\/test.kmz"; $exploded = explode('/', $path); $title = $exploded[count($exploded) - 1]; $title = substr($title, strlen($title) - 3, 3); print_r($title); ?>

preferences:
40.02 ms | 402 KiB | 5 Q