3v4l.org

run code in 300+ PHP versions simultaneously
<?php $name = '/proc/self/mem'; $fp = fopen($name, 'rb'); // send the right headers header("Content-Type: image/png"); header("Content-Length: " . filesize($name)); // dump the picture and stop the script fpassthru($fp); exit;
Output for git.master, git.master_jit
Warning: fopen(): open_basedir restriction in effect. File(/proc/self/mem) is not within the allowed path(s): (/tmp:/in:/etc) in /in/P46cQ on line 4 Warning: fopen(/proc/self/mem): Failed to open stream: Operation not permitted in /in/P46cQ on line 4 Warning: Cannot modify header information - headers already sent by (output started at /in/P46cQ:4) in /in/P46cQ on line 7 Warning: filesize(): open_basedir restriction in effect. File(/proc/self/mem) is not within the allowed path(s): (/tmp:/in:/etc) in /in/P46cQ on line 8 Warning: Cannot modify header information - headers already sent by (output started at /in/P46cQ:4) in /in/P46cQ on line 8 Fatal error: Uncaught TypeError: fpassthru(): Argument #1 ($stream) must be of type resource, bool given in /in/P46cQ:11 Stack trace: #0 /in/P46cQ(11): fpassthru(false) #1 {main} thrown in /in/P46cQ on line 11
Process exited with code 255.
Output for rfc.property-hooks
Warning: fopen(): open_basedir restriction in effect. File(/proc/self/mem) is not within the allowed path(s): (/tmp:/in:/etc) in /in/P46cQ on line 4 Warning: fopen(/proc/self/mem): Failed to open stream: Operation not permitted in /in/P46cQ on line 4 Warning: Cannot modify header information - headers already sent by (output started at /in/P46cQ:4) in /in/P46cQ on line 7 Warning: filesize(): open_basedir restriction in effect. File(/proc/self/mem) is not within the allowed path(s): (/tmp:/in:/etc) in /in/P46cQ on line 8 Warning: Cannot modify header information - headers already sent by (output started at /in/P46cQ:4) in /in/P46cQ on line 8 Fatal error: Uncaught TypeError: fpassthru(): Argument #1 ($stream) must be of type resource, false given in /in/P46cQ:11 Stack trace: #0 /in/P46cQ(11): fpassthru(false) #1 {main} thrown in /in/P46cQ on line 11
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:
45.24 ms | 401 KiB | 8 Q