3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(-1); function gzdecode_filler( $data, $length = 0 ) { $length = (int)$length; $max = 32768 * strlen( $data ); $max = $length ? min( $length, $max ) : $max; $fp = gzopen( 'data:application/x-gzip;base64,' . base64_encode( $data ), 'r' ); $decoded = gzread( $fp, $max + 1 ); if ( $decoded === false || strlen( $decoded ) > $max ) { return false; } return $decoded; } var_dump(gzdecode_filler(pack('H*', "1f8b08000000000000030bc94855282ccd4cce56482aca2fcf5348cbaf50c82acd2d2856c82f4b2d5228014ae72456552aa4e4a7eb0100e92590512c0000001f8b08000000000000030bc94855282ccd4cce56482aca2fcf5348cbaf50c82acd2d2856c82f4b2d5228014ae72456552aa4e4a7eb0100e92590512c000000")));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WNr4C
function name:  (null)
number of ops:  14
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 -1
          2        DO_ICALL                                                 
   19     3        INIT_FCALL                                               'var_dump'
          4        INIT_FCALL                                               'gzdecode_filler'
          5        INIT_FCALL                                               'pack'
          6        SEND_VAL                                                 'H%2A'
          7        SEND_VAL                                                 '1f8b08000000000000030bc94855282ccd4cce56482aca2fcf5348cbaf50c82acd2d2856c82f4b2d5228014ae72456552aa4e4a7eb0100e92590512c0000001f8b08000000000000030bc94855282ccd4cce56482aca2fcf5348cbaf50c82acd2d2856c82f4b2d5228014ae72456552aa4e4a7eb0100e92590512c000000'
          8        DO_ICALL                                         $1      
          9        SEND_VAR                                                 $1
         10        DO_FCALL                                      0  $2      
         11        SEND_VAR                                                 $2
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Function gzdecode_filler:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 14
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
2 jumps found. (Code = 47) Position 1 = 33, Position 2 = 36
Branch analysis from position: 33
2 jumps found. (Code = 43) Position 1 = 37, Position 2 = 38
Branch analysis from position: 37
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 38
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 36
Branch analysis from position: 14
2 jumps found. (Code = 47) Position 1 = 33, Position 2 = 36
Branch analysis from position: 33
Branch analysis from position: 36
filename:       /in/WNr4C
function name:  gzdecode_filler
number of ops:  40
compiled vars:  !0 = $data, !1 = $length, !2 = $max, !3 = $fp, !4 = $decoded
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      0
    6     2        CAST                                          4  ~5      !1
          3        ASSIGN                                                   !1, ~5
    7     4        STRLEN                                           ~7      !0
          5        MUL                                              ~8      ~7, 32768
          6        ASSIGN                                                   !2, ~8
    8     7      > JMPZ                                                     !1, ->14
          8    >   INIT_FCALL                                               'min'
          9        SEND_VAR                                                 !1
         10        SEND_VAR                                                 !2
         11        DO_ICALL                                         $10     
         12        QM_ASSIGN                                        ~11     $10
         13      > JMP                                                      ->15
         14    >   QM_ASSIGN                                        ~11     !2
         15    >   ASSIGN                                                   !2, ~11
   10    16        INIT_FCALL                                               'gzopen'
         17        INIT_FCALL                                               'base64_encode'
         18        SEND_VAR                                                 !0
         19        DO_ICALL                                         $13     
         20        CONCAT                                           ~14     'data%3Aapplication%2Fx-gzip%3Bbase64%2C', $13
         21        SEND_VAL                                                 ~14
         22        SEND_VAL                                                 'r'
         23        DO_ICALL                                         $15     
         24        ASSIGN                                                   !3, $15
   11    25        INIT_FCALL                                               'gzread'
         26        SEND_VAR                                                 !3
         27        ADD                                              ~17     !2, 1
         28        SEND_VAL                                                 ~17
         29        DO_ICALL                                         $18     
         30        ASSIGN                                                   !4, $18
   12    31        TYPE_CHECK                                    4  ~20     !4
         32      > JMPNZ_EX                                         ~20     ~20, ->36
         33    >   STRLEN                                           ~21     !4
         34        IS_SMALLER                                       ~22     !2, ~21
         35        BOOL                                             ~20     ~22
         36    > > JMPZ                                                     ~20, ->38
   13    37    > > RETURN                                                   <false>
   16    38    > > RETURN                                                   !4
   17    39*     > RETURN                                                   null

End of function gzdecode_filler

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.5 ms | 1402 KiB | 27 Q