3v4l.org

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