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); //$DrawCon = new DrawConnector($img,'200','200','100','20','20'); //$DrawCon -> __draw($img, '0.1','0.2',$blue); header( "Content-type: image/png" ); imagepng($img); imagedestroy($img); ?>
based on loEQ0
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught Error: Call to undefined function ImageCreate() in /in/P0ffp:3 Stack trace: #0 {main} thrown in /in/P0ffp on line 3
Process exited with code 255.
Output for hhvm-3.12.0
�PNG  IHDR���q��PLTE���.XIDATx��ͱ @A"Q)�J#�(F1�����]��a�+kO���$gO��ܹ�d��ܓ�'[O��<=��x{�O��_ IEND�B`�
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