3v4l.org

run code in 300+ PHP versions simultaneously
<?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'); ?>
Output for git.master_jit, git.master, rfc.property-hooks
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(): php_network_getaddresses: getaddrinfo for www.google.co.in 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 for www.google.co.in failed: System error in /in/Gd4kC on line 6

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:
41.92 ms | 402 KiB | 8 Q