3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $img = @ImageCreate (400, 400); $color = ImageColorAllocate ($img, 233, 0, 0); $blue = imagecolorallocate($img, 0, 0, 255); imagearc($img, '100', '100', '50', '50', '20', '60', $blue); header( "Content-type: image/png" ); imagepng($img); imagedestroy($img); ?>
based on P0ffp
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught Error: Call to undefined function ImageCreate() in /in/9P3vB:2 Stack trace: #0 {main} thrown in /in/9P3vB on line 2
Process exited with code 255.
Output for 4.3.2 - 5.6.28

Process exited with code 255.
Output for 4.3.0 - 4.3.1