3v4l.org

run code in 150+ 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); ?>
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught Error: Call to undefined function imagecreate() in /in/JfC4d:3 Stack trace: #0 {main} thrown in /in/JfC4d on line 3
Process exited with code 255.
Output for hhvm-3.10.0 - 3.13.2
�PNG  IHDRnV,�PLTE�[an�fIDAT�c`�`fx��`Ǡ���41����˖ݒ�q�@੤;{á0� �i <n�+�� J�-8�4�B8�A����p��Q�U����v@��ҥkAIEND�B`�
Output for 4.3.2 - 5.6.28

Process exited with code 255.
Output for 4.3.0 - 4.3.1