3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $filepath = "http://webneel.com/sites/default/files/images/blog/t-flowall.jpg"; $image = fopen($filepath, "rb"); echo file_exists($filepath).' '; echo filesize($filepath). 'bytes '; echo exif_read_data($filepath). ' ';
based on lHY1G
Output for 7.0.4, 7.0.20, 7.1.5 - 7.2.0
Warning: fopen(): php_network_getaddresses: getaddrinfo failed: System error in /in/Ykgrg on line 4 Warning: fopen(http://webneel.com/sites/default/files/images/blog/t-flowall.jpg): failed to open stream: php_network_getaddresses: getaddrinfo failed: System error in /in/Ykgrg on line 4 Warning: filesize(): stat failed for http://webneel.com/sites/default/files/images/blog/t-flowall.jpg in /in/Ykgrg on line 6 bytes Fatal error: Uncaught Error: Call to undefined function exif_read_data() in /in/Ykgrg:7 Stack trace: #0 {main} thrown in /in/Ykgrg on line 7
Process exited with code 255.
Output for 7.0.0 - 7.0.3, 7.0.5 - 7.0.6, 7.1.0
Warning: fopen(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/Ykgrg on line 4 Warning: fopen(http://webneel.com/sites/default/files/images/blog/t-flowall.jpg): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/Ykgrg on line 4 Warning: filesize(): stat failed for http://webneel.com/sites/default/files/images/blog/t-flowall.jpg in /in/Ykgrg on line 6 bytes Fatal error: Uncaught Error: Call to undefined function exif_read_data() in /in/Ykgrg:7 Stack trace: #0 {main} thrown in /in/Ykgrg on line 7
Process exited with code 255.
Output for 5.5.24 - 5.5.32, 5.5.34 - 5.6.17, 5.6.20 - 5.6.28
Warning: fopen(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/Ykgrg on line 4 Warning: fopen(http://webneel.com/sites/default/files/images/blog/t-flowall.jpg): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/Ykgrg on line 4 Warning: filesize(): stat failed for http://webneel.com/sites/default/files/images/blog/t-flowall.jpg in /in/Ykgrg on line 6 bytes Fatal error: Call to undefined function exif_read_data() in /in/Ykgrg on line 7
Process exited with code 255.
Output for 5.4.11 - 5.4.45, 5.5.33, 5.6.18 - 5.6.19
Warning: fopen(): php_network_getaddresses: getaddrinfo failed: System error in /in/Ykgrg on line 4 Warning: fopen(http://webneel.com/sites/default/files/images/blog/t-flowall.jpg): failed to open stream: php_network_getaddresses: getaddrinfo failed: System error in /in/Ykgrg on line 4 Warning: filesize(): stat failed for http://webneel.com/sites/default/files/images/blog/t-flowall.jpg in /in/Ykgrg on line 6 bytes Fatal error: Call to undefined function exif_read_data() in /in/Ykgrg on line 7
Process exited with code 255.
Output for 5.3.21 - 5.3.29
Warning: fopen(): php_network_getaddresses: getaddrinfo failed: System error in /in/Ykgrg on line 4 Warning: fopen(http://webneel.com/sites/default/files/images/blog/t-flowall.jpg): failed to open stream: php_network_getaddresses: getaddrinfo failed: System error in /in/Ykgrg on line 4 Warning: filesize(): stat failed for http://webneel.com/sites/default/files/images/blog/t-flowall.jpg in /in/Ykgrg on line 6 bytes Warning: exif_read_data(): php_network_getaddresses: getaddrinfo failed: System error in /in/Ykgrg on line 7 Warning: exif_read_data(): php_network_getaddresses: getaddrinfo failed: System error in /in/Ykgrg on line 7 Warning: exif_read_data(): Unable to open file in /in/Ykgrg on line 7