3v4l.org

run code in 300+ PHP versions simultaneously
<?php function eheader($header) { echo $header . PHP_EOL; } $file = 'monkey.gif'; eheader('Content-Description: File Transfer'); eheader('Content-Type: application/octet-stream'); eheader('Content-Disposition: attachment; filename='.basename($file)); eheader('Expires: 0'); eheader('Cache-Control: must-revalidate'); eheader('Pragma: public'); eheader('Content-Length: ' . filesize($file)); ob_clean(); flush(); @readfile($file);
Output for git.master, git.master_jit, rfc.property-hooks
Content-Description: File Transfer Content-Type: application/octet-stream Content-Disposition: attachment; filename=monkey.gif Expires: 0 Cache-Control: must-revalidate Pragma: public Warning: filesize(): open_basedir restriction in effect. File(monkey.gif) is not within the allowed path(s): (/tmp:/in:/etc) in /in/9Post on line 12 Content-Length: Notice: ob_clean(): Failed to delete buffer. No buffer to delete in /in/9Post on line 13

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:
54.3 ms | 402 KiB | 8 Q