3v4l.org

run code in 300+ PHP versions simultaneously
<? header('Content-Type: image/png'); $p = array(0xA3, 0x9F, 0x67, 0xF7, 0x0E, 0x93, 0x1B, 0x23, 0xBE, 0x2C, 0x8A, 0xD0, 0x80, 0xF9, 0xE1, 0xAE, 0x22, 0xF6, 0xD9, 0x43, 0x5D, 0xFB, 0xAE, 0xCC, 0x5A, 0x01, 0xDC, 0xAA, 0x52, 0xD0, 0xB6, 0xEE, 0xBB, 0x3A, 0xCF, 0x93, 0xCE, 0xD2, 0x88, 0xFC, 0x69, 0xD0, 0x2B, 0xB9, 0xB0, 0xFB, 0xBB, 0x79, 0xFC, 0xED, 0x22, 0x38, 0x49, 0xD3, 0x51, 0xB7, 0x3F, 0x02, 0xC2, 0x20, 0xD8, 0xD9, 0x3C, 0x67, 0xF4, 0x50, 0x67, 0xF4, 0x50, 0xA3, 0x9F, 0x67, 0xA5, 0xBE, 0x5F, 0x76, 0x74, 0x5A, 0x4C, 0xA1, 0x3F, 0x7A, 0xBF, 0x30, 0x6B, 0x88, 0x2D, 0x60, 0x65, 0x7D, 0x52, 0x9D, 0xAD, 0x88, 0xA1, 0x66, 0x94, 0xA1, 0x27, 0x56, 0xEC, 0xFE, 0xAF, 0x57, 0x57, 0xEB, 0x2E, 0x20, 0xA3, 0xAE, 0x58, 0x80, 0xA7, 0x0C, 0x10, 0x55, 0xCF, 0x09, 0x5C, 0x10, 0x40, 0x8A, 0xB9, 0x39, 0xB3, 0xC8, 0xCD, 0x64, 0x45, 0x3C, 0x49, 0x3E, 0xAD, 0x3F, 0x33, 0x56, 0x1F, 0x19 ); $img = imagecreatetruecolor(55, 55); for ($y = 0; $y < sizeof($p); $y += 3) { $r = $p[$y]; $g = $p[$y+1]; $b = $p[$y+2]; $color = imagecolorallocate($img, $r, $g, $b); imagesetpixel($img, round($y / 3), 0, $color); } imagepng($img); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 37
Branch analysis from position: 37
2 jumps found. (Code = 44) Position 1 = 40, Position 2 = 11
Branch analysis from position: 40
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 40, Position 2 = 11
Branch analysis from position: 40
Branch analysis from position: 11
filename:       /in/ZtnPQ
function name:  (null)
number of ops:  44
compiled vars:  !0 = $p, !1 = $img, !2 = $y, !3 = $r, !4 = $g, !5 = $b, !6 = $color
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'header'
          1        SEND_VAL                                                 'Content-Type%3A+image%2Fpng'
          2        DO_ICALL                                                 
    5     3        ASSIGN                                                   !0, <array>
    7     4        INIT_FCALL_BY_NAME                                       'imagecreatetruecolor'
          5        SEND_VAL_EX                                              55
          6        SEND_VAL_EX                                              55
          7        DO_FCALL                                      0  $9      
          8        ASSIGN                                                   !1, $9
    9     9        ASSIGN                                                   !2, 0
         10      > JMP                                                      ->37
   10    11    >   FETCH_DIM_R                                      ~12     !0, !2
         12        ASSIGN                                                   !3, ~12
   11    13        ADD                                              ~14     !2, 1
         14        FETCH_DIM_R                                      ~15     !0, ~14
         15        ASSIGN                                                   !4, ~15
   12    16        ADD                                              ~17     !2, 2
         17        FETCH_DIM_R                                      ~18     !0, ~17
         18        ASSIGN                                                   !5, ~18
   13    19        INIT_FCALL_BY_NAME                                       'imagecolorallocate'
         20        SEND_VAR_EX                                              !1
         21        SEND_VAR_EX                                              !3
         22        SEND_VAR_EX                                              !4
         23        SEND_VAR_EX                                              !5
         24        DO_FCALL                                      0  $20     
         25        ASSIGN                                                   !6, $20
   14    26        INIT_FCALL_BY_NAME                                       'imagesetpixel'
         27        SEND_VAR_EX                                              !1
         28        INIT_FCALL                                               'round'
         29        DIV                                              ~22     !2, 3
         30        SEND_VAL                                                 ~22
         31        DO_ICALL                                         $23     
         32        SEND_VAR_NO_REF_EX                                       $23
         33        SEND_VAL_EX                                              0
         34        SEND_VAR_EX                                              !6
         35        DO_FCALL                                      0          
    9    36        ASSIGN_OP                                     1          !2, 3
         37    >   COUNT                                            ~26     !0
         38        IS_SMALLER                                               !2, ~26
         39      > JMPNZ                                                    ~27, ->11
   17    40    >   INIT_FCALL_BY_NAME                                       'imagepng'
         41        SEND_VAR_EX                                              !1
         42        DO_FCALL                                      0          
   19    43      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.99 ms | 1400 KiB | 17 Q