3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $aContext = array( 'http' => array( 'proxy' => '109.127.89.2:8080', 'request_fulluri' => true, ), ); $cxContext = stream_context_create($aContext); $sFile = file_get_contents("http://ip.jsontest.com/", False, $cxContext); echo $sFile;
Output for 5.0.0 - 5.6.28, 7.0.0 - 7.1.0
Warning: file_get_contents(http://ip.jsontest.com/): failed to open stream: Network is unreachable in /in/GPrEp on line 11
Output for hhvm-3.10.0 - 3.12.0
Warning: Failed to open http://ip.jsontest.com/ () in /in/GPrEp on line 11
Output for 4.3.0 - 4.4.9
Warning: file_get_contents() expects at most 2 parameters, 3 given in /in/GPrEp on line 11