3v4l.org

run code in 300+ PHP versions simultaneously
<?php $d = dir(dirname(sys_get_temp_dir())."/etc"); while (false !== ($entry = $d->read())) { echo $entry."\n";} $file = fopen('/etc/os-release', 'r'); while($line = fgets($file)) { printf("%s\n", $line); }
Output for git.master, git.master_jit
. .. pacman.d protocols services arch-release crypttab fstab group gshadow host.conf hosts issue ld.so.conf ld.so.conf.d motd mtab nsswitch.conf passwd profile profile.d resolv.conf securetty shadow shells skel php.ini php_archive.ini Warning: fopen(/etc/os-release): Failed to open stream: No such file or directory in /in/4e32G on line 6 Fatal error: Uncaught TypeError: fgets(): Argument #1 ($stream) must be of type resource, bool given in /in/4e32G:8 Stack trace: #0 /in/4e32G(8): fgets(false) #1 {main} thrown in /in/4e32G on line 8
Process exited with code 255.
Output for rfc.property-hooks
. .. mtab ld.so.conf.d pacman.d profile.d skel arch-release crypttab fstab group gshadow host.conf hosts issue ld.so.conf motd nsswitch.conf passwd php.ini php_archive.ini profile protocols resolv.conf securetty services shadow shells Warning: fopen(/etc/os-release): Failed to open stream: No such file or directory in /in/4e32G on line 6 Fatal error: Uncaught TypeError: fgets(): Argument #1 ($stream) must be of type resource, false given in /in/4e32G:8 Stack trace: #0 /in/4e32G(8): fgets(false) #1 {main} thrown in /in/4e32G on line 8
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:
37.8 ms | 401 KiB | 8 Q