3v4l.org

run code in 300+ PHP versions simultaneously
<?php $image = imagecreatetruecolor(100, 100); // Transparent Background imagealphablending($image, false); $transparency = imagecolorallocatealpha($image, 0, 0, 0, 127); imagefill($image, 0, 0, $transparency); imagesavealpha($image, true); // Drawing over $black = imagecolorallocate($image, 0, 0, 0); imagefilledrectangle($image, 25, 25, 75, 75, $black); header('Content-Type: image/png'); imagepng($image);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ShK0f
function name:  (null)
number of ops:  49
compiled vars:  !0 = $image, !1 = $transparency, !2 = $black
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL_BY_NAME                                       'imagecreatetruecolor'
          1        SEND_VAL_EX                                              100
          2        SEND_VAL_EX                                              100
          3        DO_FCALL                                      0  $3      
          4        ASSIGN                                                   !0, $3
    5     5        INIT_FCALL_BY_NAME                                       'imagealphablending'
          6        SEND_VAR_EX                                              !0
          7        SEND_VAL_EX                                              <false>
          8        DO_FCALL                                      0          
    6     9        INIT_FCALL_BY_NAME                                       'imagecolorallocatealpha'
         10        SEND_VAR_EX                                              !0
         11        SEND_VAL_EX                                              0
         12        SEND_VAL_EX                                              0
         13        SEND_VAL_EX                                              0
         14        SEND_VAL_EX                                              127
         15        DO_FCALL                                      0  $6      
         16        ASSIGN                                                   !1, $6
    7    17        INIT_FCALL_BY_NAME                                       'imagefill'
         18        SEND_VAR_EX                                              !0
         19        SEND_VAL_EX                                              0
         20        SEND_VAL_EX                                              0
         21        SEND_VAR_EX                                              !1
         22        DO_FCALL                                      0          
    8    23        INIT_FCALL_BY_NAME                                       'imagesavealpha'
         24        SEND_VAR_EX                                              !0
         25        SEND_VAL_EX                                              <true>
         26        DO_FCALL                                      0          
   11    27        INIT_FCALL_BY_NAME                                       'imagecolorallocate'
         28        SEND_VAR_EX                                              !0
         29        SEND_VAL_EX                                              0
         30        SEND_VAL_EX                                              0
         31        SEND_VAL_EX                                              0
         32        DO_FCALL                                      0  $10     
         33        ASSIGN                                                   !2, $10
   12    34        INIT_FCALL_BY_NAME                                       'imagefilledrectangle'
         35        SEND_VAR_EX                                              !0
         36        SEND_VAL_EX                                              25
         37        SEND_VAL_EX                                              25
         38        SEND_VAL_EX                                              75
         39        SEND_VAL_EX                                              75
         40        SEND_VAR_EX                                              !2
         41        DO_FCALL                                      0          
   14    42        INIT_FCALL                                               'header'
         43        SEND_VAL                                                 'Content-Type%3A+image%2Fpng'
         44        DO_ICALL                                                 
   15    45        INIT_FCALL_BY_NAME                                       'imagepng'
         46        SEND_VAR_EX                                              !0
         47        DO_FCALL                                      0          
         48      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
189.88 ms | 1392 KiB | 15 Q