3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php header('Content-type: image/jpeg;'); $p = "http://blushbooth.zenfolio.com/cdn/pub/zrwih5o5lkfd/0/null/mh/axk5ojmd3obetl_ztwsd/s2/v51/p1453011928-6.jpg"; $a = file_get_contents('$p'); echo $a; copy('http://www.google.co.in/intl/en_com/images/srpr/logo1w.png', '/tmp/file.jpeg'); ?>
based on uGpAR
Output for 5.6.0 - 7.3.1
Warning: file_get_contents(): open_basedir restriction in effect. File($p) is not within the allowed path(s): (/tmp:/in:/etc) in /in/Gd4kC on line 4 Warning: file_get_contents($p): failed to open stream: Operation not permitted in /in/Gd4kC on line 4 Warning: copy(): open_basedir restriction in effect. File(http://www.google.co.in/intl/en_com/images/srpr/logo1w.png) is not within the allowed path(s): (/tmp:/in:/etc) in /in/Gd4kC on line 6
Output for 5.3.17 - 5.5.38
Warning: file_get_contents($p): failed to open stream: No such file or directory in /in/Gd4kC on line 4 Warning: copy(): php_network_getaddresses: getaddrinfo failed: System error in /in/Gd4kC on line 6 Warning: copy(http://www.google.co.in/intl/en_com/images/srpr/logo1w.png): failed to open stream: php_network_getaddresses: getaddrinfo failed: System error in /in/Gd4kC on line 6