3v4l.org

run code in 300+ PHP versions simultaneously
<?php $im = imagecreatetruecolor(100, 100); // Make the background white imagefilledrectangle($im, 0, 0, 99, 99, 0xFFFFFF); // Draw a text string on the image imagestring($im, 3, 40, 20, 'GD Library', 0xFFBA00); // Output the image to browser header('Content-Type: image/gif'); imagegif($im); imagedestroy($im);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/viq1D
function name:  (null)
number of ops:  31
compiled vars:  !0 = $im
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL_BY_NAME                                       'imagecreatetruecolor'
          1        SEND_VAL_EX                                              100
          2        SEND_VAL_EX                                              100
          3        DO_FCALL                                      0  $1      
          4        ASSIGN                                                   !0, $1
    6     5        INIT_FCALL_BY_NAME                                       'imagefilledrectangle'
          6        SEND_VAR_EX                                              !0
          7        SEND_VAL_EX                                              0
          8        SEND_VAL_EX                                              0
          9        SEND_VAL_EX                                              99
         10        SEND_VAL_EX                                              99
         11        SEND_VAL_EX                                              16777215
         12        DO_FCALL                                      0          
    9    13        INIT_FCALL_BY_NAME                                       'imagestring'
         14        SEND_VAR_EX                                              !0
         15        SEND_VAL_EX                                              3
         16        SEND_VAL_EX                                              40
         17        SEND_VAL_EX                                              20
         18        SEND_VAL_EX                                              'GD+Library'
         19        SEND_VAL_EX                                              16759296
         20        DO_FCALL                                      0          
   12    21        INIT_FCALL                                               'header'
         22        SEND_VAL                                                 'Content-Type%3A+image%2Fgif'
         23        DO_ICALL                                                 
   14    24        INIT_FCALL_BY_NAME                                       'imagegif'
         25        SEND_VAR_EX                                              !0
         26        DO_FCALL                                      0          
   15    27        INIT_FCALL_BY_NAME                                       'imagedestroy'
         28        SEND_VAR_EX                                              !0
         29        DO_FCALL                                      0          
         30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.55 ms | 1395 KiB | 15 Q