3v4l.org

run code in 300+ PHP versions simultaneously
<?php $r = popen('ls', 'r'); echo fgets($r); pclose($r); var_dump(get_resources()); pclose($r);
Output for git.master, git.master_jit
Warning: popen(ls,r): Cannot allocate memory in /in/np07c on line 2 Fatal error: Uncaught TypeError: fgets(): Argument #1 ($stream) must be of type resource, bool given in /in/np07c:3 Stack trace: #0 /in/np07c(3): fgets(false) #1 {main} thrown in /in/np07c on line 3
Process exited with code 255.
Output for rfc.property-hooks
Warning: popen(ls,r): Cannot allocate memory in /in/np07c on line 2 Fatal error: Uncaught TypeError: fgets(): Argument #1 ($stream) must be of type resource, false given in /in/np07c:3 Stack trace: #0 /in/np07c(3): fgets(false) #1 {main} thrown in /in/np07c on line 3
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:
160.04 ms | 407 KiB | 5 Q