3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arr = explode('/', 'auth/signin.json'); $tail = end($arr); $dot = strpos($tail, '.'); var_dump($tail, $dot);
based on mjKkf
Output for 4.3.0 - 7.1.0
string(11) "signin.json" int(6)