3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?PHP $url = 'https://primarymarkets.my.salesforce.com/services/data/v43.0/'; $context = stream_context_create(array( 'http' => array( 'method' => 'GET', 'header' => 'Authorization:Bearer 00D7F000003h4EL!ARQAQF08VwjkZIYt7yj0j5unfbF_Q_T5b0l7OdE62I4vZ2SmFhKS5Psla8cgnFAb8H0oazFsOibOI6ceXon8loGZnv5npCHW', 'timeout' => 60 ) )); $resp = file_get_contents($url, FALSE, $context); //print_r($resp); ?>
Output for 7.3.0alpha1 - 7.3.0beta1
Warning: file_get_contents(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/vr9ZB on line 12 Warning: file_get_contents(https://primarymarkets.my.salesforce.com/services/data/v43.0/): failed to open stream: No such file or directory in /in/vr9ZB on line 12
Output for 5.6.30, 7.0.30 - 7.2.7
Warning: file_get_contents(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/vr9ZB on line 12 Warning: file_get_contents(): open_basedir restriction in effect. File(https://primarymarkets.my.salesforce.com/services/data/v43.0/) is not within the allowed path(s): (/tmp:/in) in /in/vr9ZB on line 12 Warning: file_get_contents(https://primarymarkets.my.salesforce.com/services/data/v43.0/): failed to open stream: Operation not permitted in /in/vr9ZB on line 12
Output for hhvm-3.22.0
Warning: Failed to open https://primarymarkets.my.salesforce.com/services/data/v43.0/ (Could not resolve host: primarymarkets.my.salesforce.com) in /in/vr9ZB on line -1
Output for hhvm-3.18.5 - 3.21.3
Warning: Failed to open https://primarymarkets.my.salesforce.com/services/data/v43.0/ (Could not resolve host: primarymarkets.my.salesforce.com) in /in/vr9ZB on line 12