3v4l.org

run code in 300+ PHP versions simultaneously
<?php $my_thing = "thisismy.image.jpg"; $last_dot = strrpos($my_thing, "."); $ext = substr($my_thing, $last_dot); echo split(".", $my_thing);

preferences:
33.56 ms | 402 KiB | 5 Q