3v4l.org

run code in 300+ PHP versions simultaneously
<?php $my_img = imagecreate( 200, 80 ); $background = imagecolorallocate( $my_img, 0, 0, 255 ); $text_colour = imagecolorallocate( $my_img, 255, 255, 0 ); $line_colour = imagecolorallocate( $my_img, 128, 255, 0 ); imagestring( $my_img, 4, 30, 25, "thesitewizard.com", $text_colour ); imagesetthickness ( $my_img, 5 ); imageline( $my_img, 30, 45, 165, 45, $line_colour ); header( "Content-type: image/png" ); imagepng( $my_img ); imagecolordeallocate( $line_color ); imagecolordeallocate( $text_color ); imagecolordeallocate( $background ); imagedestroy( $my_img ); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/i13ms
function name:  (null)
number of ops:  65
compiled vars:  !0 = $my_img, !1 = $background, !2 = $text_colour, !3 = $line_colour, !4 = $line_color, !5 = $text_color
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL_BY_NAME                                       'imagecreate'
          1        SEND_VAL_EX                                              200
          2        SEND_VAL_EX                                              80
          3        DO_FCALL                                      0  $6      
          4        ASSIGN                                                   !0, $6
    3     5        INIT_FCALL_BY_NAME                                       'imagecolorallocate'
          6        SEND_VAR_EX                                              !0
          7        SEND_VAL_EX                                              0
          8        SEND_VAL_EX                                              0
          9        SEND_VAL_EX                                              255
         10        DO_FCALL                                      0  $8      
         11        ASSIGN                                                   !1, $8
    4    12        INIT_FCALL_BY_NAME                                       'imagecolorallocate'
         13        SEND_VAR_EX                                              !0
         14        SEND_VAL_EX                                              255
         15        SEND_VAL_EX                                              255
         16        SEND_VAL_EX                                              0
         17        DO_FCALL                                      0  $10     
         18        ASSIGN                                                   !2, $10
    5    19        INIT_FCALL_BY_NAME                                       'imagecolorallocate'
         20        SEND_VAR_EX                                              !0
         21        SEND_VAL_EX                                              128
         22        SEND_VAL_EX                                              255
         23        SEND_VAL_EX                                              0
         24        DO_FCALL                                      0  $12     
         25        ASSIGN                                                   !3, $12
    6    26        INIT_FCALL_BY_NAME                                       'imagestring'
         27        SEND_VAR_EX                                              !0
         28        SEND_VAL_EX                                              4
         29        SEND_VAL_EX                                              30
         30        SEND_VAL_EX                                              25
         31        SEND_VAL_EX                                              'thesitewizard.com'
         32        SEND_VAR_EX                                              !2
         33        DO_FCALL                                      0          
    8    34        INIT_FCALL_BY_NAME                                       'imagesetthickness'
         35        SEND_VAR_EX                                              !0
         36        SEND_VAL_EX                                              5
         37        DO_FCALL                                      0          
    9    38        INIT_FCALL_BY_NAME                                       'imageline'
         39        SEND_VAR_EX                                              !0
         40        SEND_VAL_EX                                              30
         41        SEND_VAL_EX                                              45
         42        SEND_VAL_EX                                              165
         43        SEND_VAL_EX                                              45
         44        SEND_VAR_EX                                              !3
         45        DO_FCALL                                      0          
   11    46        INIT_FCALL                                               'header'
         47        SEND_VAL                                                 'Content-type%3A+image%2Fpng'
         48        DO_ICALL                                                 
   12    49        INIT_FCALL_BY_NAME                                       'imagepng'
         50        SEND_VAR_EX                                              !0
         51        DO_FCALL                                      0          
   13    52        INIT_FCALL_BY_NAME                                       'imagecolordeallocate'
         53        SEND_VAR_EX                                              !4
         54        DO_FCALL                                      0          
   14    55        INIT_FCALL_BY_NAME                                       'imagecolordeallocate'
         56        SEND_VAR_EX                                              !5
         57        DO_FCALL                                      0          
   15    58        INIT_FCALL_BY_NAME                                       'imagecolordeallocate'
         59        SEND_VAR_EX                                              !1
         60        DO_FCALL                                      0          
   16    61        INIT_FCALL_BY_NAME                                       'imagedestroy'
         62        SEND_VAR_EX                                              !0
         63        DO_FCALL                                      0          
   17    64      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.15 ms | 1400 KiB | 15 Q