3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php header("Content-Type: image/png"); $im = @imagecreate(110, 20) or die("Cannot Initialize new GD image stream"); $background_color = imagecolorallocate($im, 0, 0, 0); $text_color = imagecolorallocate($im, 233, 14, 91); imagestring($im, 1, 5, 5, "A Simple Text String", $text_color); imagepng($im); imagedestroy($im);
based on 1lghI
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Call to undefined function imagecreate() in /in/1khm8:3 Stack trace: #0 {main} thrown in /in/1khm8 on line 3
Process exited with code 255.
Output for 5.3.20 - 5.6.21

Process exited with code 255.