3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php /* Attempt to open */ $im = @imagecreatefrompng('http://fc04.deviantart.net/fs71/f/2010/227/4/6/PNG_Test_by_Destron23.png'); // See if it succeeded if($im){ print "Success\n"; }else{ print "Failed\n"; }
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught Error: Call to undefined function imagecreatefrompng() in /in/2PFIe:3 Stack trace: #0 {main} thrown in /in/2PFIe on line 3
Process exited with code 255.
Output for hhvm-3.12.0
Success
Output for hhvm-3.10.0

Process exited with code 153.
Output for 4.3.2 - 5.6.28

Process exited with code 255.
Output for 4.3.0 - 4.3.1