3v4l.org

run code in 300+ PHP versions simultaneously
<?php // thumb width $square = 150; $large = 200; $small = 100; ////////////////////////////////////////////////////////////////////////////////// square if( isset($_GET[img]) && ( $_GET[type] == "square" || $_GET[type] == "" ) ){ // thumb size $thumb_width = $square; $thumb_height = $square; // align $align = $_GET[align]; // image source $imgSrc = $_GET[img]; $imgExt = substr($imgSrc,-3); // image extension if($imgExt == "jpg"){ $myImage = imagecreatefromjpeg($imgSrc); } if($imgExt == "gif"){ $myImage = imagecreatefromgif($imgSrc); } if($imgExt == "png"){ $myImage = imagecreatefrompng($imgSrc); } // getting the image dimensions list($width_orig, $height_orig) = getimagesize($imgSrc); // ratio $ratio_orig = $width_orig/$height_orig; // landscape or portrait? if ($thumb_width/$thumb_height > $ratio_orig) { $new_height = $thumb_width/$ratio_orig; $new_width = $thumb_width; } else { $new_width = $thumb_height*$ratio_orig; $new_height = $thumb_height; } // middle $x_mid = $new_width/2; $y_mid = $new_height/2; // create new image $process = imagecreatetruecolor(round($new_width), round($new_height)); imagecopyresampled($process, $myImage, 0, 0, 0, 0, $new_width, $new_height, $width_orig, $height_orig); $thumb = imagecreatetruecolor($thumb_width, $thumb_height); // alignment if($align == ""){ imagecopyresampled($thumb, $process, 0, 0, ($x_mid-($thumb_width/2)), ($y_mid-($thumb_height/2)), $thumb_width, $thumb_height, $thumb_width, $thumb_height); } if($align == "top"){ imagecopyresampled($thumb, $process, 0, 0, ($x_mid-($thumb_width/2)), 0, $thumb_width, $thumb_height, $thumb_width, $thumb_height); } if($align == "bottom"){ imagecopyresampled($thumb, $process, 0, 0, ($x_mid-($thumb_width/2)), ($new_height-$thumb_height), $thumb_width, $thumb_height, $thumb_width, $thumb_height); } if($align == "left"){ imagecopyresampled($thumb, $process, 0, 0, 0, ($y_mid-($thumb_height/2)), $thumb_width, $thumb_height, $thumb_width, $thumb_height); } if($align == "right"){ imagecopyresampled($thumb, $process, 0, 0, ($new_width-$thumb_width), ($y_mid-($thumb_height/2)), $thumb_width, $thumb_height, $thumb_width, $thumb_height); } imagedestroy($process); imagedestroy($myImage); if($imgExt == "jpg"){ imagejpeg($thumb, null, 100); } if($imgExt == "gif"){ imagegif($thumb); } if($imgExt == "png"){ imagepng($thumb, null, 9); } } ////////////////////////////////////////////////////////////////////////////////// normal if( isset($_GET[img]) && ( $_GET[type] == "large" || $_GET[type] == "small" ) ){ if( $_GET[type] == "large" ){ $thumb_width = $large; } if( $_GET[type] == "small" ){ $thumb_width = $small; } // image source $imgSrc = $_GET[img]; $imgExt = substr($imgSrc,-3); // image extension if($imgExt == "jpg"){ $myImage = imagecreatefromjpeg($imgSrc); } if($imgExt == "gif"){ $myImage = imagecreatefromgif($imgSrc); } if($imgExt == "png"){ $myImage = imagecreatefrompng($imgSrc); } //getting the image dimensions list($width_orig, $height_orig) = getimagesize($imgSrc); // ratio $ratio_orig = $width_orig/$height_orig; $thumb_height = $thumb_width/$ratio_orig; // new dimensions $new_width = $thumb_width; $new_height = $thumb_height; // middle $x_mid = $new_width/2; $y_mid = $new_height/2; // create new image $process = imagecreatetruecolor(round($new_width), round($new_height)); imagecopyresampled($process, $myImage, 0, 0, 0, 0, $new_width, $new_height, $width_orig, $height_orig); $thumb = imagecreatetruecolor($thumb_width, $thumb_height); imagecopyresampled($thumb, $process, 0, 0, ($x_mid-($thumb_width/2)), ($y_mid-($thumb_height/2)), $thumb_width, $thumb_height, $thumb_width, $thumb_height); if($imgExt == "jpg"){ imagejpeg($thumb, null, 100); } if($imgExt == "gif"){ imagegif($thumb); } if($imgExt == "png"){ imagepng($thumb, null, 9); } } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 7, Position 2 = 18
Branch analysis from position: 7
2 jumps found. (Code = 47) Position 1 = 12, Position 2 = 17
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 213
Branch analysis from position: 19
2 jumps found. (Code = 43) Position 1 = 36, Position 2 = 40
Branch analysis from position: 36
2 jumps found. (Code = 43) Position 1 = 42, Position 2 = 46
Branch analysis from position: 42
2 jumps found. (Code = 43) Position 1 = 48, Position 2 = 52
Branch analysis from position: 48
2 jumps found. (Code = 43) Position 1 = 65, Position 2 = 69
Branch analysis from position: 65
1 jumps found. (Code = 42) Position 1 = 72
Branch analysis from position: 72
2 jumps found. (Code = 43) Position 1 = 106, Position 2 = 122
Branch analysis from position: 106
2 jumps found. (Code = 43) Position 1 = 124, Position 2 = 138
Branch analysis from position: 124
2 jumps found. (Code = 43) Position 1 = 140, Position 2 = 155
Branch analysis from position: 140
2 jumps found. (Code = 43) Position 1 = 157, Position 2 = 171
Branch analysis from position: 157
2 jumps found. (Code = 43) Position 1 = 173, Position 2 = 188
Branch analysis from position: 173
2 jumps found. (Code = 43) Position 1 = 196, Position 2 = 201
Branch analysis from position: 196
2 jumps found. (Code = 43) Position 1 = 203, Position 2 = 206
Branch analysis from position: 203
2 jumps found. (Code = 43) Position 1 = 208, Position 2 = 213
Branch analysis from position: 208
2 jumps found. (Code = 46) Position 1 = 217, Position 2 = 228
Branch analysis from position: 217
2 jumps found. (Code = 47) Position 1 = 222, Position 2 = 227
Branch analysis from position: 222
2 jumps found. (Code = 43) Position 1 = 229, Position 2 = 349
Branch analysis from position: 229
2 jumps found. (Code = 43) Position 1 = 234, Position 2 = 235
Branch analysis from position: 234
2 jumps found. (Code = 43) Position 1 = 240, Position 2 = 241
Branch analysis from position: 240
2 jumps found. (Code = 43) Position 1 = 252, Position 2 = 256
Branch analysis from position: 252
2 jumps found. (Code = 43) Position 1 = 258, Position 2 = 262
Branch analysis from position: 258
2 jumps found. (Code = 43) Position 1 = 264, Position 2 = 268
Branch analysis from position: 264
2 jumps found. (Code = 43) Position 1 = 332, Position 2 = 337
Branch analysis from position: 332
2 jumps found. (Code = 43) Position 1 = 339, Position 2 = 342
Branch analysis from position: 339
2 jumps found. (Code = 43) Position 1 = 344, Position 2 = 349
Branch analysis from position: 344
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 349
Branch analysis from position: 342
Branch analysis from position: 337
Branch analysis from position: 268
Branch analysis from position: 262
Branch analysis from position: 256
Branch analysis from position: 241
Branch analysis from position: 235
Branch analysis from position: 349
Branch analysis from position: 227
Branch analysis from position: 228
Branch analysis from position: 213
Branch analysis from position: 206
Branch analysis from position: 201
Branch analysis from position: 188
Branch analysis from position: 171
Branch analysis from position: 155
Branch analysis from position: 138
Branch analysis from position: 122
Branch analysis from position: 69
2 jumps found. (Code = 43) Position 1 = 106, Position 2 = 122
Branch analysis from position: 106
Branch analysis from position: 122
Branch analysis from position: 52
Branch analysis from position: 46
Branch analysis from position: 40
Branch analysis from position: 213
Branch analysis from position: 17
Branch analysis from position: 18
filename:       /in/Cj6kP
function name:  (null)
number of ops:  350
compiled vars:  !0 = $square, !1 = $large, !2 = $small, !3 = $thumb_width, !4 = $thumb_height, !5 = $align, !6 = $imgSrc, !7 = $imgExt, !8 = $myImage, !9 = $width_orig, !10 = $height_orig, !11 = $ratio_orig, !12 = $new_height, !13 = $new_width, !14 = $x_mid, !15 = $y_mid, !16 = $process, !17 = $thumb
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, 150
    5     1        ASSIGN                                                   !1, 200
    6     2        ASSIGN                                                   !2, 100
    9     3        FETCH_CONSTANT                                   ~22     'img'
          4        FETCH_IS                                         ~21     '_GET'
          5        ISSET_ISEMPTY_DIM_OBJ                         0  ~23     ~21, ~22
          6      > JMPZ_EX                                          ~23     ~23, ->18
          7    >   FETCH_CONSTANT                                   ~25     'type'
          8        FETCH_R                      global              ~24     '_GET'
          9        FETCH_DIM_R                                      ~26     ~24, ~25
         10        IS_EQUAL                                         ~27     ~26, 'square'
         11      > JMPNZ_EX                                         ~27     ~27, ->17
         12    >   FETCH_CONSTANT                                   ~29     'type'
         13        FETCH_R                      global              ~28     '_GET'
         14        FETCH_DIM_R                                      ~30     ~28, ~29
         15        IS_EQUAL                                         ~31     ~30, ''
         16        BOOL                                             ~27     ~31
         17    >   BOOL                                             ~23     ~27
         18    > > JMPZ                                                     ~23, ->213
   12    19    >   ASSIGN                                                   !3, !0
   13    20        ASSIGN                                                   !4, !0
   16    21        FETCH_CONSTANT                                   ~35     'align'
         22        FETCH_R                      global              ~34     '_GET'
         23        FETCH_DIM_R                                      ~36     ~34, ~35
         24        ASSIGN                                                   !5, ~36
   19    25        FETCH_CONSTANT                                   ~39     'img'
         26        FETCH_R                      global              ~38     '_GET'
         27        FETCH_DIM_R                                      ~40     ~38, ~39
         28        ASSIGN                                                   !6, ~40
   20    29        INIT_FCALL                                               'substr'
         30        SEND_VAR                                                 !6
         31        SEND_VAL                                                 -3
         32        DO_ICALL                                         $42     
         33        ASSIGN                                                   !7, $42
   23    34        IS_EQUAL                                                 !7, 'jpg'
         35      > JMPZ                                                     ~44, ->40
         36    >   INIT_FCALL_BY_NAME                                       'imagecreatefromjpeg'
         37        SEND_VAR_EX                                              !6
         38        DO_FCALL                                      0  $45     
         39        ASSIGN                                                   !8, $45
   24    40    >   IS_EQUAL                                                 !7, 'gif'
         41      > JMPZ                                                     ~47, ->46
         42    >   INIT_FCALL_BY_NAME                                       'imagecreatefromgif'
         43        SEND_VAR_EX                                              !6
         44        DO_FCALL                                      0  $48     
         45        ASSIGN                                                   !8, $48
   25    46    >   IS_EQUAL                                                 !7, 'png'
         47      > JMPZ                                                     ~50, ->52
         48    >   INIT_FCALL_BY_NAME                                       'imagecreatefrompng'
         49        SEND_VAR_EX                                              !6
         50        DO_FCALL                                      0  $51     
         51        ASSIGN                                                   !8, $51
   28    52    >   INIT_FCALL                                               'getimagesize'
         53        SEND_VAR                                                 !6
         54        DO_ICALL                                         $53     
         55        FETCH_LIST_R                                     $54     $53, 0
         56        ASSIGN                                                   !9, $54
         57        FETCH_LIST_R                                     $56     $53, 1
         58        ASSIGN                                                   !10, $56
         59        FREE                                                     $53
   31    60        DIV                                              ~58     !9, !10
         61        ASSIGN                                                   !11, ~58
   34    62        DIV                                              ~60     !3, !4
         63        IS_SMALLER                                               !11, ~60
         64      > JMPZ                                                     ~61, ->69
   35    65    >   DIV                                              ~62     !3, !11
         66        ASSIGN                                                   !12, ~62
   36    67        ASSIGN                                                   !13, !3
         68      > JMP                                                      ->72
   38    69    >   MUL                                              ~65     !4, !11
         70        ASSIGN                                                   !13, ~65
   39    71        ASSIGN                                                   !12, !4
   43    72    >   DIV                                              ~68     !13, 2
         73        ASSIGN                                                   !14, ~68
   44    74        DIV                                              ~70     !12, 2
         75        ASSIGN                                                   !15, ~70
   47    76        INIT_FCALL_BY_NAME                                       'imagecreatetruecolor'
         77        INIT_FCALL                                               'round'
         78        SEND_VAR                                                 !13
         79        DO_ICALL                                         $72     
         80        SEND_VAR_NO_REF_EX                                       $72
         81        INIT_FCALL                                               'round'
         82        SEND_VAR                                                 !12
         83        DO_ICALL                                         $73     
         84        SEND_VAR_NO_REF_EX                                       $73
         85        DO_FCALL                                      0  $74     
         86        ASSIGN                                                   !16, $74
   48    87        INIT_FCALL_BY_NAME                                       'imagecopyresampled'
         88        SEND_VAR_EX                                              !16
         89        SEND_VAR_EX                                              !8
         90        SEND_VAL_EX                                              0
         91        SEND_VAL_EX                                              0
         92        SEND_VAL_EX                                              0
         93        SEND_VAL_EX                                              0
         94        SEND_VAR_EX                                              !13
         95        SEND_VAR_EX                                              !12
         96        SEND_VAR_EX                                              !9
         97        SEND_VAR_EX                                              !10
         98        DO_FCALL                                      0          
   49    99        INIT_FCALL_BY_NAME                                       'imagecreatetruecolor'
        100        SEND_VAR_EX                                              !3
        101        SEND_VAR_EX                                              !4
        102        DO_FCALL                                      0  $77     
        103        ASSIGN                                                   !17, $77
   52   104        IS_EQUAL                                                 !5, ''
        105      > JMPZ                                                     ~79, ->122
   53   106    >   INIT_FCALL_BY_NAME                                       'imagecopyresampled'
        107        SEND_VAR_EX                                              !17
        108        SEND_VAR_EX                                              !16
        109        SEND_VAL_EX                                              0
        110        SEND_VAL_EX                                              0
        111        DIV                                              ~80     !3, 2
        112        SUB                                              ~81     !14, ~80
        113        SEND_VAL_EX                                              ~81
        114        DIV                                              ~82     !4, 2
        115        SUB                                              ~83     !15, ~82
        116        SEND_VAL_EX                                              ~83
        117        SEND_VAR_EX                                              !3
        118        SEND_VAR_EX                                              !4
        119        SEND_VAR_EX                                              !3
        120        SEND_VAR_EX                                              !4
        121        DO_FCALL                                      0          
   55   122    >   IS_EQUAL                                                 !5, 'top'
        123      > JMPZ                                                     ~85, ->138
   56   124    >   INIT_FCALL_BY_NAME                                       'imagecopyresampled'
        125        SEND_VAR_EX                                              !17
        126        SEND_VAR_EX                                              !16
        127        SEND_VAL_EX                                              0
        128        SEND_VAL_EX                                              0
        129        DIV                                              ~86     !3, 2
        130        SUB                                              ~87     !14, ~86
        131        SEND_VAL_EX                                              ~87
        132        SEND_VAL_EX                                              0
        133        SEND_VAR_EX                                              !3
        134        SEND_VAR_EX                                              !4
        135        SEND_VAR_EX                                              !3
        136        SEND_VAR_EX                                              !4
        137        DO_FCALL                                      0          
   58   138    >   IS_EQUAL                                                 !5, 'bottom'
        139      > JMPZ                                                     ~89, ->155
   59   140    >   INIT_FCALL_BY_NAME                                       'imagecopyresampled'
        141        SEND_VAR_EX                                              !17
        142        SEND_VAR_EX                                              !16
        143        SEND_VAL_EX                                              0
        144        SEND_VAL_EX                                              0
        145        DIV                                              ~90     !3, 2
        146        SUB                                              ~91     !14, ~90
        147        SEND_VAL_EX                                              ~91
        148        SUB                                              ~92     !12, !4
        149        SEND_VAL_EX                                              ~92
        150        SEND_VAR_EX                                              !3
        151        SEND_VAR_EX                                              !4
        152        SEND_VAR_EX                                              !3
        153        SEND_VAR_EX                                              !4
        154        DO_FCALL                                      0          
   61   155    >   IS_EQUAL                                                 !5, 'left'
        156      > JMPZ                                                     ~94, ->171
   62   157    >   INIT_FCALL_BY_NAME                                       'imagecopyresampled'
        158        SEND_VAR_EX                                              !17
        159        SEND_VAR_EX                                              !16
        160        SEND_VAL_EX                                              0
        161        SEND_VAL_EX                                              0
        162        SEND_VAL_EX                                              0
        163        DIV                                              ~95     !4, 2
        164        SUB                                              ~96     !15, ~95
        165        SEND_VAL_EX                                              ~96
        166        SEND_VAR_EX                                              !3
        167        SEND_VAR_EX                                              !4
        168        SEND_VAR_EX                                              !3
        169        SEND_VAR_EX                                              !4
        170        DO_FCALL                                      0          
   64   171    >   IS_EQUAL                                                 !5, 'right'
        172      > JMPZ                                                     ~98, ->188
   65   173    >   INIT_FCALL_BY_NAME                                       'imagecopyresampled'
        174        SEND_VAR_EX                                              !17
        175        SEND_VAR_EX                                              !16
        176        SEND_VAL_EX                                              0
        177        SEND_VAL_EX                                              0
        178        SUB                                              ~99     !13, !3
        179        SEND_VAL_EX                                              ~99
        180        DIV                                              ~100    !4, 2
        181        SUB                                              ~101    !15, ~100
        182        SEND_VAL_EX                                              ~101
        183        SEND_VAR_EX                                              !3
        184        SEND_VAR_EX                                              !4
        185        SEND_VAR_EX                                              !3
        186        SEND_VAR_EX                                              !4
        187        DO_FCALL                                      0          
   68   188    >   INIT_FCALL_BY_NAME                                       'imagedestroy'
        189        SEND_VAR_EX                                              !16
        190        DO_FCALL                                      0          
   69   191        INIT_FCALL_BY_NAME                                       'imagedestroy'
        192        SEND_VAR_EX                                              !8
        193        DO_FCALL                                      0          
   71   194        IS_EQUAL                                                 !7, 'jpg'
        195      > JMPZ                                                     ~105, ->201
        196    >   INIT_FCALL_BY_NAME                                       'imagejpeg'
        197        SEND_VAR_EX                                              !17
        198        SEND_VAL_EX                                              null
        199        SEND_VAL_EX                                              100
        200        DO_FCALL                                      0          
   72   201    >   IS_EQUAL                                                 !7, 'gif'
        202      > JMPZ                                                     ~107, ->206
        203    >   INIT_FCALL_BY_NAME                                       'imagegif'
        204        SEND_VAR_EX                                              !17
        205        DO_FCALL                                      0          
   73   206    >   IS_EQUAL                                                 !7, 'png'
        207      > JMPZ                                                     ~109, ->213
        208    >   INIT_FCALL_BY_NAME                                       'imagepng'
        209        SEND_VAR_EX                                              !17
        210        SEND_VAL_EX                                              null
        211        SEND_VAL_EX                                              9
        212        DO_FCALL                                      0          
   78   213    >   FETCH_CONSTANT                                   ~112    'img'
        214        FETCH_IS                                         ~111    '_GET'
        215        ISSET_ISEMPTY_DIM_OBJ                         0  ~113    ~111, ~112
        216      > JMPZ_EX                                          ~113    ~113, ->228
        217    >   FETCH_CONSTANT                                   ~115    'type'
        218        FETCH_R                      global              ~114    '_GET'
        219        FETCH_DIM_R                                      ~116    ~114, ~115
        220        IS_EQUAL                                         ~117    ~116, 'large'
        221      > JMPNZ_EX                                         ~117    ~117, ->227
        222    >   FETCH_CONSTANT                                   ~119    'type'
        223        FETCH_R                      global              ~118    '_GET'
        224        FETCH_DIM_R                                      ~120    ~118, ~119
        225        IS_EQUAL                                         ~121    ~120, 'small'
        226        BOOL                                             ~117    ~121
        227    >   BOOL                                             ~113    ~117
        228    > > JMPZ                                                     ~113, ->349
   80   229    >   FETCH_CONSTANT                                   ~123    'type'
        230        FETCH_R                      global              ~122    '_GET'
        231        FETCH_DIM_R                                      ~124    ~122, ~123
        232        IS_EQUAL                                                 ~124, 'large'
        233      > JMPZ                                                     ~125, ->235
        234    >   ASSIGN                                                   !3, !1
   81   235    >   FETCH_CONSTANT                                   ~128    'type'
        236        FETCH_R                      global              ~127    '_GET'
        237        FETCH_DIM_R                                      ~129    ~127, ~128
        238        IS_EQUAL                                                 ~129, 'small'
        239      > JMPZ                                                     ~130, ->241
        240    >   ASSIGN                                                   !3, !2
   84   241    >   FETCH_CONSTANT                                   ~133    'img'
        242        FETCH_R                      global              ~132    '_GET'
        243        FETCH_DIM_R                                      ~134    ~132, ~133
        244        ASSIGN                                                   !6, ~134
   85   245        INIT_FCALL                                               'substr'
        246        SEND_VAR                                                 !6
        247        SEND_VAL                                                 -3
        248        DO_ICALL                                         $136    
        249        ASSIGN                                                   !7, $136
   88   250        IS_EQUAL                                                 !7, 'jpg'
        251      > JMPZ                                                     ~138, ->256
        252    >   INIT_FCALL_BY_NAME                                       'imagecreatefromjpeg'
        253        SEND_VAR_EX                                              !6
        254        DO_FCALL                                      0  $139    
        255        ASSIGN                                                   !8, $139
   89   256    >   IS_EQUAL                                                 !7, 'gif'
        257      > JMPZ                                                     ~141, ->262
        258    >   INIT_FCALL_BY_NAME                                       'imagecreatefromgif'
        259        SEND_VAR_EX                                              !6
        260        DO_FCALL                                      0  $142    
        261        ASSIGN                                                   !8, $142
   90   262    >   IS_EQUAL                                                 !7, 'png'
        263      > JMPZ                                                     ~144, ->268
        264    >   INIT_FCALL_BY_NAME                                       'imagecreatefrompng'
        265        SEND_VAR_EX                                              !6
        266        DO_FCALL                                      0  $145    
        267        ASSIGN                                                   !8, $145
   93   268    >   INIT_FCALL                                               'getimagesize'
        269        SEND_VAR                                                 !6
        270        DO_ICALL                                         $147    
        271        FETCH_LIST_R                                     $148    $147, 0
        272        ASSIGN                                                   !9, $148
        273        FETCH_LIST_R                                     $150    $147, 1
        274        ASSIGN                                                   !10, $150
        275        FREE                                                     $147
   96   276        DIV                                              ~152    !9, !10
        277        ASSIGN                                                   !11, ~152
   97   278        DIV                                              ~154    !3, !11
        279        ASSIGN                                                   !4, ~154
  100   280        ASSIGN                                                   !13, !3
  101   281        ASSIGN                                                   !12, !4
  104   282        DIV                                              ~158    !13, 2
        283        ASSIGN                                                   !14, ~158
  105   284        DIV                                              ~160    !12, 2
        285        ASSIGN                                                   !15, ~160
  108   286        INIT_FCALL_BY_NAME                                       'imagecreatetruecolor'
        287        INIT_FCALL                                               'round'
        288        SEND_VAR                                                 !13
        289        DO_ICALL                                         $162    
        290        SEND_VAR_NO_REF_EX                                       $162
        291        INIT_FCALL                                               'round'
        292        SEND_VAR                                                 !12
        293        DO_ICALL                                         $163    
        294        SEND_VAR_NO_REF_EX                                       $163
        295        DO_FCALL                                      0  $164    
        296        ASSIGN                                                   !16, $164
  110   297        INIT_FCALL_BY_NAME                                       'imagecopyresampled'
        298        SEND_VAR_EX                                              !16
        299        SEND_VAR_EX                                              !8
        300        SEND_VAL_EX                                              0
        301        SEND_VAL_EX                                              0
        302        SEND_VAL_EX                                              0
        303        SEND_VAL_EX                                              0
        304        SEND_VAR_EX                                              !13
        305        SEND_VAR_EX                                              !12
        306        SEND_VAR_EX                                              !9
        307        SEND_VAR_EX                                              !10
        308        DO_FCALL                                      0          
  111   309        INIT_FCALL_BY_NAME                                       'imagecreatetruecolor'
        310        SEND_VAR_EX                                              !3
        311        SEND_VAR_EX                                              !4
        312        DO_FCALL                                      0  $167    
        313        ASSIGN                                                   !17, $167
  112   314        INIT_FCALL_BY_NAME                                       'imagecopyresampled'
        315        SEND_VAR_EX                                              !17
        316        SEND_VAR_EX                                              !16
        317        SEND_VAL_EX                                              0
        318        SEND_VAL_EX                                              0
        319        DIV                                              ~169    !3, 2
        320        SUB                                              ~170    !14, ~169
        321        SEND_VAL_EX                                              ~170
        322        DIV                                              ~171    !4, 2
        323        SUB                                              ~172    !15, ~171
        324        SEND_VAL_EX                                              ~172
        325        SEND_VAR_EX                                              !3
        326        SEND_VAR_EX                                              !4
        327        SEND_VAR_EX                                              !3
        328        SEND_VAR_EX                                              !4
        329        DO_FCALL                                      0          
  114   330        IS_EQUAL                                                 !7, 'jpg'
        331      > JMPZ                                                     ~174, ->337
        332    >   INIT_FCALL_BY_NAME                                       'imagejpeg'
        333        SEND_VAR_EX                                              !17
        334        SEND_VAL_EX                                              null
        335        SEND_VAL_EX                                              100
        336        DO_FCALL                                      0          
  115   337    >   IS_EQUAL                                                 !7, 'gif'
        338      > JMPZ                                                     ~176, ->342
        339    >   INIT_FCALL_BY_NAME                                       'imagegif'
        340        SEND_VAR_EX                                              !17
        341        DO_FCALL                                      0          
  116   342    >   IS_EQUAL                                                 !7, 'png'
        343      > JMPZ                                         

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.03 ms | 1428 KiB | 19 Q