3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $filename = 'monkey.skunk.kmzzrd'; $extensionIndex = strpos($filename, '.'); $extension = substr($filename, $extensionIndex + 1); $title = substr($filename, 0, $extensionIndex); print_r($extension); print_r($title); ?>
Output for 4.3.0 - 7.1.0
skunk.kmzzrdmonkey