3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $filepath = "../uploads/".$file_name; $image = fopen($filepath, "rb"); echo file_exists($filepath).' '; echo filesize($filepath). 'bytes '; echo exif_read_data($filepath). ' ';
Output for 7.0.0 - 7.2.0
Notice: Undefined variable: file_name in /in/lHY1G on line 3 Warning: fopen(../uploads/): failed to open stream: No such file or directory in /in/lHY1G on line 4 Warning: filesize(): stat failed for ../uploads/ in /in/lHY1G on line 6 bytes Fatal error: Uncaught Error: Call to undefined function exif_read_data() in /in/lHY1G:7 Stack trace: #0 {main} thrown in /in/lHY1G on line 7
Process exited with code 255.
Output for 5.4.11 - 5.6.28
Notice: Undefined variable: file_name in /in/lHY1G on line 3 Warning: fopen(../uploads/): failed to open stream: No such file or directory in /in/lHY1G on line 4 Warning: filesize(): stat failed for ../uploads/ in /in/lHY1G on line 6 bytes Fatal error: Call to undefined function exif_read_data() in /in/lHY1G on line 7
Process exited with code 255.
Output for 5.3.21 - 5.3.29
Notice: Undefined variable: file_name in /in/lHY1G on line 3 Warning: fopen(../uploads/): failed to open stream: No such file or directory in /in/lHY1G on line 4 Warning: filesize(): stat failed for ../uploads/ in /in/lHY1G on line 6 bytes Warning: exif_read_data(): Unable to open file in /in/lHY1G on line 7