3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $im = imagecreatetruecolor(200, 200); $text_color = imagecolorallocate ($im, 0, 0, 0); imagestring ($im, 3, 5, 15, "hello uto4ka", $text_color); header('Content-type: image/png'); imagepng($im, NULL, 0, NULL); ?>
based on DnkQA
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Call to undefined function imagecreatetruecolor() in /in/gn7Ad:2 Stack trace: #0 {main} thrown in /in/gn7Ad on line 2
Process exited with code 255.
Output for 5.4.0 - 5.6.28
Fatal error: Call to undefined function imagecreatetruecolor() in /in/gn7Ad on line 2
Process exited with code 255.