3v4l.org

run code in 300+ PHP versions simultaneously
<?php $file = 'monkey.gif'; if (file_exists($file)) { header('Content-Description: File Transfer'); header('Content-Type: application/octet-stream'); header('Content-Disposition: attachment; filename='.basename($file)); header('Expires: 0'); header('Cache-Control: must-revalidate'); header('Pragma: public'); header('Content-Length: ' . filesize($file)); ob_clean(); flush(); readfile($file); exit; } ?>
Output for git.master, git.master_jit, rfc.property-hooks
Warning: file_exists(): open_basedir restriction in effect. File(monkey.gif) is not within the allowed path(s): (/tmp:/in:/etc) in /in/PdRCU on line 4

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:
40.48 ms | 401 KiB | 8 Q