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); print_r(str_split($my_thing));

preferences:
45.23 ms | 402 KiB | 5 Q