3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(-1); function gzdecode_filler( $data, $length = 0 ) { $fp = fopen( 'php://memory', 'r+' ); fwrite( $fp, $data ); fseek( $fp, 0 ); stream_filter_append( $fp, 'zlib.inflate', STREAM_FILTER_READ ); $length = (int)$length; $max = 32768 * strlen( $data ); $max = $length ? min( $length, $max ) : $max; $decoded = fread( $fp, $max + 1 ); if ( $decoded === false || strlen( $decoded ) > $max ) { return false; } return $decoded; } var_dump(gzdecode_filler(pack('H*', "1f8b08000000000000030bc94855282ccd4cce56482aca2fcf5348cbaf50c82acd2d2856c82f4b2d5228014ae72456552aa4e4a7eb0100e92590512c000000")));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MiQZA
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                                                 
   23     3        INIT_FCALL                                               'var_dump'
          4        INIT_FCALL                                               'gzdecode_filler'
          5        INIT_FCALL                                               'pack'
          6        SEND_VAL                                                 'H%2A'
          7        SEND_VAL                                                 '1f8b08000000000000030bc94855282ccd4cce56482aca2fcf5348cbaf50c82acd2d2856c82f4b2d5228014ae72456552aa4e4a7eb0100e92590512c000000'
          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 = 26, Position 2 = 32
Branch analysis from position: 26
1 jumps found. (Code = 42) Position 1 = 33
Branch analysis from position: 33
2 jumps found. (Code = 47) Position 1 = 42, Position 2 = 45
Branch analysis from position: 42
2 jumps found. (Code = 43) Position 1 = 46, Position 2 = 47
Branch analysis from position: 46
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 47
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 45
Branch analysis from position: 32
2 jumps found. (Code = 47) Position 1 = 42, Position 2 = 45
Branch analysis from position: 42
Branch analysis from position: 45
filename:       /in/MiQZA
function name:  gzdecode_filler
number of ops:  49
compiled vars:  !0 = $data, !1 = $length, !2 = $fp, !3 = $max, !4 = $decoded
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      0
    6     2        INIT_FCALL                                               'fopen'
          3        SEND_VAL                                                 'php%3A%2F%2Fmemory'
          4        SEND_VAL                                                 'r%2B'
          5        DO_ICALL                                         $5      
          6        ASSIGN                                                   !2, $5
    7     7        INIT_FCALL                                               'fwrite'
          8        SEND_VAR                                                 !2
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                                 
    8    11        INIT_FCALL                                               'fseek'
         12        SEND_VAR                                                 !2
         13        SEND_VAL                                                 0
         14        DO_ICALL                                                 
    9    15        INIT_FCALL                                               'stream_filter_append'
         16        SEND_VAR                                                 !2
         17        SEND_VAL                                                 'zlib.inflate'
         18        SEND_VAL                                                 1
         19        DO_ICALL                                                 
   11    20        CAST                                          4  ~10     !1
         21        ASSIGN                                                   !1, ~10
   12    22        STRLEN                                           ~12     !0
         23        MUL                                              ~13     ~12, 32768
         24        ASSIGN                                                   !3, ~13
   13    25      > JMPZ                                                     !1, ->32
         26    >   INIT_FCALL                                               'min'
         27        SEND_VAR                                                 !1
         28        SEND_VAR                                                 !3
         29        DO_ICALL                                         $15     
         30        QM_ASSIGN                                        ~16     $15
         31      > JMP                                                      ->33
         32    >   QM_ASSIGN                                        ~16     !3
         33    >   ASSIGN                                                   !3, ~16
   15    34        INIT_FCALL                                               'fread'
         35        SEND_VAR                                                 !2
         36        ADD                                              ~18     !3, 1
         37        SEND_VAL                                                 ~18
         38        DO_ICALL                                         $19     
         39        ASSIGN                                                   !4, $19
   16    40        TYPE_CHECK                                    4  ~21     !4
         41      > JMPNZ_EX                                         ~21     ~21, ->45
         42    >   STRLEN                                           ~22     !4
         43        IS_SMALLER                                       ~23     !3, ~22
         44        BOOL                                             ~21     ~23
         45    > > JMPZ                                                     ~21, ->47
   17    46    > > RETURN                                                   <false>
   20    47    > > RETURN                                                   !4
   21    48*     > RETURN                                                   null

End of function gzdecode_filler

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
188.06 ms | 1403 KiB | 32 Q