3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo "START\n"; $test = imagecreatefromstring(file_get_contents('http://i.stack.imgur.com/KQI1j.jpg')); var_dump($test); echo "STOP\n";
Output for 7.0.0 - 7.3.0rc3
START Fatal error: Uncaught Error: Call to undefined function imagecreatefromstring() in /in/62A9j:4 Stack trace: #0 {main} thrown in /in/62A9j on line 4
Process exited with code 255.
Output for hhvm-3.22.0
START Warning: Failed to open http://i.stack.imgur.com/KQI1j.jpg (Could not resolve host: i.stack.imgur.com) in /in/62A9j on line -1 Warning: Empty string or invalid image in /in/62A9j on line -1 bool(false) STOP
Output for hhvm-3.10.1 - 3.21.3
START Warning: Failed to open http://i.stack.imgur.com/KQI1j.jpg (Could not resolve host: i.stack.imgur.com) in /in/62A9j on line 4 Warning: Empty string or invalid image in /in/62A9j on line 4 bool(false) STOP
Output for 5.0.0 - 5.6.30
START Fatal error: Call to undefined function imagecreatefromstring() in /in/62A9j on line 4
Process exited with code 255.
Output for 4.4.5 - 4.4.9
START Fatal error: Call to undefined function: imagecreatefromstring() in /in/62A9j on line 4
Process exited with code 255.
Output for 4.3.2 - 4.4.4
START Fatal error: Call to undefined function: imagecreatefromstring() in /in/62A9j on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1
START Fatal error: Call to undefined function: imagecreatefromstring() in /in/62A9j on line 4