3v4l.org

run code in 300+ PHP versions simultaneously
<?php $f = fopen("/etc/crontab","r"); echo fread($f,filesize("/etc/crontab")); fclose($f);
Output for git.master, git.master_jit
Warning: fopen(/etc/crontab): Failed to open stream: No such file or directory in /in/7nY9q on line 3 Warning: filesize(): stat failed for /etc/crontab in /in/7nY9q on line 4 Fatal error: Uncaught TypeError: fread(): Argument #1 ($stream) must be of type resource, bool given in /in/7nY9q:4 Stack trace: #0 /in/7nY9q(4): fread(false, false) #1 {main} thrown in /in/7nY9q on line 4
Process exited with code 255.
Output for rfc.property-hooks
Warning: fopen(/etc/crontab): Failed to open stream: No such file or directory in /in/7nY9q on line 3 Warning: filesize(): stat failed for /etc/crontab in /in/7nY9q on line 4 Fatal error: Uncaught TypeError: fread(): Argument #1 ($stream) must be of type resource, false given in /in/7nY9q:4 Stack trace: #0 /in/7nY9q(4): fread(false, false) #1 {main} thrown in /in/7nY9q on line 4
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:
65.17 ms | 401 KiB | 8 Q