3v4l.org

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