3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = false; $a = fopen('http://example.org', 'r'); array_key_exists($a, get_defined_vars()); array($$a); fclose($a);
Output for git.master, git.master_jit
Warning: fopen(): php_network_getaddresses: getaddrinfo for example.org failed: System error in /in/GaKVB on line 3 Warning: fopen(http://example.org): Failed to open stream: php_network_getaddresses: getaddrinfo for example.org failed: System error in /in/GaKVB on line 3 Warning: Undefined variable $ in /in/GaKVB on line 5 Fatal error: Uncaught TypeError: fclose(): Argument #1 ($stream) must be of type resource, bool given in /in/GaKVB:6 Stack trace: #0 /in/GaKVB(6): fclose(false) #1 {main} thrown in /in/GaKVB on line 6
Process exited with code 255.
Output for rfc.property-hooks
Warning: fopen(): php_network_getaddresses: getaddrinfo for example.org failed: System error in /in/GaKVB on line 3 Warning: fopen(http://example.org): Failed to open stream: php_network_getaddresses: getaddrinfo for example.org failed: System error in /in/GaKVB on line 3 Warning: Undefined variable $ in /in/GaKVB on line 5 Fatal error: Uncaught TypeError: fclose(): Argument #1 ($stream) must be of type resource, false given in /in/GaKVB:6 Stack trace: #0 /in/GaKVB(6): fclose(false) #1 {main} thrown in /in/GaKVB on line 6
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:
38.59 ms | 401 KiB | 8 Q