3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function get_ext($v = '') { $value = explode( '.', $v ); return $value[count( $value ) - 1]; } echo get_ext('123.jpg.jpeg.php');
based on Hqv2G
Output for 4.3.0 - 7.2.0
php