3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php // Everything you enter here will be executed by our servers. Try it! $str = "safsad fd sm.pfle.jpg"; echo $a = strrpos($str,"."); echo substr($str,0,$a);
Output for 4.3.0 - 7.1.0
17safsad fd sm.pfle