3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $filename = 'monkeyskunk.kmz'; $extensionIndex = strrpos($filename, '.'); $extension = substr($filename, $extensionIndex + 1); $title = substr($filename, 0, $extensionIndex); print_r($extension . "\n"); print_r($title . "\n"); ?>
Output for 4.3.0 - 7.1.0
kmz monkeyskunk