3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo strrpos("Altis Avenida201306031237","-"); echo substr("Altis Avenida201306031237", 0 , (strrpos("Altis Avenida201306031237","-") == -1 ? strlen("Altis Avenida201306031237") : strrpos("Altis Avenida201306031237","-")) );
Output for 4.3.0 - 7.1.0