3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($i = 0; $i < 5000000000; $i ++) { $fp = fopen("/dev/null", "w"); if (($i % 500000) == 0) { var_dump($fp); system("date"); } // if fclose($fp); }
Output for git.master, git.master_jit
Warning: fopen(): open_basedir restriction in effect. File(/dev/null) is not within the allowed path(s): (/tmp:/in:/etc) in /in/rBGt6 on line 5 Warning: fopen(/dev/null): Failed to open stream: Operation not permitted in /in/rBGt6 on line 5 bool(false) Warning: system(): Unable to fork [date] in /in/rBGt6 on line 9 Fatal error: Uncaught TypeError: fclose(): Argument #1 ($stream) must be of type resource, bool given in /in/rBGt6:11 Stack trace: #0 /in/rBGt6(11): fclose(false) #1 {main} thrown in /in/rBGt6 on line 11
Process exited with code 255.
Output for rfc.property-hooks
Warning: fopen(): open_basedir restriction in effect. File(/dev/null) is not within the allowed path(s): (/tmp:/in:/etc) in /in/rBGt6 on line 5 Warning: fopen(/dev/null): Failed to open stream: Operation not permitted in /in/rBGt6 on line 5 bool(false) Warning: system(): Unable to fork [date] in /in/rBGt6 on line 9 Fatal error: Uncaught TypeError: fclose(): Argument #1 ($stream) must be of type resource, false given in /in/rBGt6:11 Stack trace: #0 /in/rBGt6(11): fclose(false) #1 {main} thrown in /in/rBGt6 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:
97.09 ms | 401 KiB | 8 Q