3v4l.org

run code in 500+ PHP versions simultaneously
<?php function foo(): resource { return fopen('/tmp', 'r'); } foo();
Output for git.master, git.master_jit
Warning: "resource" is not a supported builtin type and will be interpreted as a class name. Write "\resource" to suppress this warning in /in/h3QkW on line 3 Fatal error: Uncaught TypeError: foo(): Return value must be of type resource, resource returned in /in/h3QkW:5 Stack trace: #0 /in/h3QkW(8): foo() #1 {main} thrown in /in/h3QkW 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:
35.69 ms | 813 KiB | 4 Q