3v4l.org

run code in 300+ PHP versions simultaneously
<?php $context = stream_context_create(array('http' => array('follow_location' => 1, 'max_redirects' => 1))); $fp = fopen('http://google.com', 'r', false, $context); var_dump(stream_get_contents($fp));
Output for git.master, git.master_jit
Warning: fopen(): php_network_getaddresses: getaddrinfo for google.com failed: System error in /in/9Vojd on line 4 Warning: fopen(http://google.com): Failed to open stream: php_network_getaddresses: getaddrinfo for google.com failed: System error in /in/9Vojd on line 4 Fatal error: Uncaught TypeError: stream_get_contents(): Argument #1 ($stream) must be of type resource, bool given in /in/9Vojd:5 Stack trace: #0 /in/9Vojd(5): stream_get_contents(false) #1 {main} thrown in /in/9Vojd on line 5
Process exited with code 255.
Output for rfc.property-hooks
Warning: fopen(): php_network_getaddresses: getaddrinfo for google.com failed: System error in /in/9Vojd on line 4 Warning: fopen(http://google.com): Failed to open stream: php_network_getaddresses: getaddrinfo for google.com failed: System error in /in/9Vojd on line 4 Fatal error: Uncaught TypeError: stream_get_contents(): Argument #1 ($stream) must be of type resource, false given in /in/9Vojd:5 Stack trace: #0 /in/9Vojd(5): stream_get_contents(false) #1 {main} thrown in /in/9Vojd 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:
45.63 ms | 401 KiB | 8 Q