3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $realfilename = 'CAIN457A2309_protocole_v01_final_21.08.2013.pdf'; $new_file_name = substr($realfilename, 0, -4); $new_file_ext = substr($realfilename, -4); echo $new_file_name; echo $new_file_ext;
Output for 4.3.0 - 7.1.7
CAIN457A2309_protocole_v01_final_21.08.2013.pdf