3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Create a 100*30 image $im = imagecreate(100, 30); // White background and blue text $bg = imagecolorallocate($im, 255, 255, 255); $textcolor = imagecolorallocate($im, 0, 0, 255); // Write the string at the top left imagestring($im, 5, 0, 0, 'Hello world!', $textcolor); // Output the image header('Content-type: image/png'); imagepng($im); imagedestroy($im);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TpAUf
function name:  (null)
number of ops:  37
compiled vars:  !0 = $im, !1 = $bg, !2 = $textcolor
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL_BY_NAME                                       'imagecreate'
          1        SEND_VAL_EX                                              100
          2        SEND_VAL_EX                                              30
          3        DO_FCALL                                      0  $3      
          4        ASSIGN                                                   !0, $3
    7     5        INIT_FCALL_BY_NAME                                       'imagecolorallocate'
          6        SEND_VAR_EX                                              !0
          7        SEND_VAL_EX                                              255
          8        SEND_VAL_EX                                              255
          9        SEND_VAL_EX                                              255
         10        DO_FCALL                                      0  $5      
         11        ASSIGN                                                   !1, $5
    8    12        INIT_FCALL_BY_NAME                                       'imagecolorallocate'
         13        SEND_VAR_EX                                              !0
         14        SEND_VAL_EX                                              0
         15        SEND_VAL_EX                                              0
         16        SEND_VAL_EX                                              255
         17        DO_FCALL                                      0  $7      
         18        ASSIGN                                                   !2, $7
   11    19        INIT_FCALL_BY_NAME                                       'imagestring'
         20        SEND_VAR_EX                                              !0
         21        SEND_VAL_EX                                              5
         22        SEND_VAL_EX                                              0
         23        SEND_VAL_EX                                              0
         24        SEND_VAL_EX                                              'Hello+world%21'
         25        SEND_VAR_EX                                              !2
         26        DO_FCALL                                      0          
   14    27        INIT_FCALL                                               'header'
         28        SEND_VAL                                                 'Content-type%3A+image%2Fpng'
         29        DO_ICALL                                                 
   16    30        INIT_FCALL_BY_NAME                                       'imagepng'
         31        SEND_VAR_EX                                              !0
         32        DO_FCALL                                      0          
   17    33        INIT_FCALL_BY_NAME                                       'imagedestroy'
         34        SEND_VAR_EX                                              !0
         35        DO_FCALL                                      0          
         36      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.52 ms | 1401 KiB | 15 Q