3v4l.org

run code in 300+ PHP versions simultaneously
<?php function read(resource $res): void {} read(fopen('php://temp', 'rw'));
Output for git.master, git.master_jit, rfc.property-hooks
Warning: "resource" is not a supported builtin type and will be interpreted as a class name. Write "\resource" to suppress this warning in /in/S7GRg on line 3 Fatal error: Uncaught TypeError: read(): Argument #1 ($res) must be of type resource, resource given, called in /in/S7GRg on line 5 and defined in /in/S7GRg:3 Stack trace: #0 /in/S7GRg(5): read(Resource id #5) #1 {main} thrown in /in/S7GRg 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:
48.33 ms | 406 KiB | 5 Q