3v4l.org

run code in 300+ PHP versions simultaneously
<?php $filepath = "../uploads/".$file_name; $image = fopen($filepath, "rb"); echo file_exists($filepath).' '; echo filesize($filepath). 'bytes '; echo exif_read_data($filepath). ' ';
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined variable $file_name in /in/lHY1G on line 3 Warning: fopen(): open_basedir restriction in effect. File(../uploads/) is not within the allowed path(s): (/tmp:/in:/etc) in /in/lHY1G on line 4 Warning: fopen(../uploads/): Failed to open stream: Operation not permitted in /in/lHY1G on line 4 Warning: file_exists(): open_basedir restriction in effect. File(../uploads/) is not within the allowed path(s): (/tmp:/in:/etc) in /in/lHY1G on line 5 Warning: filesize(): open_basedir restriction in effect. File(../uploads/) is not within the allowed path(s): (/tmp:/in:/etc) 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.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
42.22 ms | 402 KiB | 8 Q