3v4l.org

run code in 150+ 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 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
CAIN457A2309_protocole_v01_final_21.08.2013.pdf