3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $url = "https://maps.googleapis.com/maps/api/timezone/json?location=0,0&sensor=false"; $url = str_replace(' ','',$url); $json_timezone = file_get_contents($url); echo $url; echo '<pre>'; print_r($json_timezone);
based on NVmAb
Output for 5.5.24 - 5.5.32, 5.5.34 - 5.6.17, 5.6.20 - 5.6.28, 7.0.0 - 7.0.3, 7.0.5 - 7.1.0
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/tp0Ud on line 5 Warning: file_get_contents(https://maps.googleapis.com/maps/api/timezone/json?location=0,0&sensor=false): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/tp0Ud on line 5 https://maps.googleapis.com/maps/api/timezone/json?location=0,0&sensor=false<pre>
Output for 5.4.35 - 5.4.45, 5.5.33, 5.6.18 - 5.6.19, 7.0.4
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: System error in /in/tp0Ud on line 5 Warning: file_get_contents(https://maps.googleapis.com/maps/api/timezone/json?location=0,0&sensor=false): failed to open stream: php_network_getaddresses: getaddrinfo failed: System error in /in/tp0Ud on line 5 https://maps.googleapis.com/maps/api/timezone/json?location=0,0&sensor=false<pre>
Output for hhvm-3.12.0
Warning: Failed to open https://maps.googleapis.com/maps/api/timezone/json?location=0,0&sensor=false (Could not resolve host: maps.googleapis.com) in /in/tp0Ud on line 5 https://maps.googleapis.com/maps/api/timezone/json?location=0,0&sensor=false<pre>
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.3.0 - 5.4.34
Warning: file_get_contents(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/tp0Ud on line 5 Warning: file_get_contents(https://maps.googleapis.com/maps/api/timezone/json?location=0,0&sensor=false): failed to open stream: No such file or directory in /in/tp0Ud on line 5 https://maps.googleapis.com/maps/api/timezone/json?location=0,0&sensor=false<pre>
Output for 4.3.2 - 5.2.17
Notice: file_get_contents(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/tp0Ud on line 5 Warning: file_get_contents(https://maps.googleapis.com/maps/api/timezone/json?location=0,0&sensor=false): failed to open stream: No such file or directory in /in/tp0Ud on line 5 https://maps.googleapis.com/maps/api/timezone/json?location=0,0&sensor=false<pre>
Output for 4.3.0 - 4.3.1
Notice: file_get_contents() [http://www.php.net/function.file-get-contents]: Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/tp0Ud on line 5 Warning: file_get_contents(https://maps.googleapis.com/maps/api/timezone/json?location=0,0&sensor=false) [http://www.php.net/function.file-get-contents]: failed to create stream: No such file or directory in /in/tp0Ud on line 5 https://maps.googleapis.com/maps/api/timezone/json?location=0,0&sensor=false<pre>