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 5.4.0 - 5.4.24
Parse error: syntax error, unexpected ''CAIN457A2309_protocole_v01_fi' (T_CONSTANT_ENCAPSED_STRING) in /in/VZutu on line 2
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /in/VZutu on line 2
Process exited with code 255.