3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(-1); function gzdecode_filler( $data, $length = 0 ) { $fp = fopen( 'compress.zlib://data:application/x-gzip;base64,' . base64_encode( $data ), 'r' ); fseek( $fp, 0, SEEK_END ); var_dump( ftell( $fp ) ); $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*', "1f8b08000000000000030bc94855282ccd4cce56482aca2fcf5348cbaf50c82acd2d2856c82f4b2d5228014ae72456552aa4e4a7eb0100e92590512c0000001f8b08000000000000030bc94855282ccd4cce56482aca2fcf5348cbaf50c82acd2d2856c82f4b2d5228014ae72456552aa4e4a7eb0100e92590512c000000")));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CneNh
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                                                 
   22     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 = 28, Position 2 = 34
Branch analysis from position: 28
1 jumps found. (Code = 42) Position 1 = 35
Branch analysis from position: 35
2 jumps found. (Code = 47) Position 1 = 44, Position 2 = 47
Branch analysis from position: 44
2 jumps found. (Code = 43) Position 1 = 48, Position 2 = 49
Branch analysis from position: 48
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 49
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 47
Branch analysis from position: 34
2 jumps found. (Code = 47) Position 1 = 44, Position 2 = 47
Branch analysis from position: 44
Branch analysis from position: 47
filename:       /in/CneNh
function name:  gzdecode_filler
number of ops:  51
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        INIT_FCALL                                               'base64_encode'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $5      
          6        CONCAT                                           ~6      'compress.zlib%3A%2F%2Fdata%3Aapplication%2Fx-gzip%3Bbase64%2C', $5
          7        SEND_VAL                                                 ~6
          8        SEND_VAL                                                 'r'
          9        DO_ICALL                                         $7      
         10        ASSIGN                                                   !2, $7
    7    11        INIT_FCALL                                               'fseek'
         12        SEND_VAR                                                 !2
         13        SEND_VAL                                                 0
         14        SEND_VAL                                                 2
         15        DO_ICALL                                                 
    8    16        INIT_FCALL                                               'var_dump'
         17        INIT_FCALL                                               'ftell'
         18        SEND_VAR                                                 !2
         19        DO_ICALL                                         $10     
         20        SEND_VAR                                                 $10
         21        DO_ICALL                                                 
   10    22        CAST                                          4  ~12     !1
         23        ASSIGN                                                   !1, ~12
   11    24        STRLEN                                           ~14     !0
         25        MUL                                              ~15     ~14, 32768
         26        ASSIGN                                                   !3, ~15
   12    27      > JMPZ                                                     !1, ->34
         28    >   INIT_FCALL                                               'min'
         29        SEND_VAR                                                 !1
         30        SEND_VAR                                                 !3
         31        DO_ICALL                                         $17     
         32        QM_ASSIGN                                        ~18     $17
         33      > JMP                                                      ->35
         34    >   QM_ASSIGN                                        ~18     !3
         35    >   ASSIGN                                                   !3, ~18
   14    36        INIT_FCALL                                               'fread'
         37        SEND_VAR                                                 !2
         38        ADD                                              ~20     !3, 1
         39        SEND_VAL                                                 ~20
         40        DO_ICALL                                         $21     
         41        ASSIGN                                                   !4, $21
   15    42        TYPE_CHECK                                    4  ~23     !4
         43      > JMPNZ_EX                                         ~23     ~23, ->47
         44    >   STRLEN                                           ~24     !4
         45        IS_SMALLER                                       ~25     !3, ~24
         46        BOOL                                             ~23     ~25
         47    > > JMPZ                                                     ~23, ->49
   16    48    > > RETURN                                                   <false>
   19    49    > > RETURN                                                   !4
   20    50*     > RETURN                                                   null

End of function gzdecode_filler

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.14 ms | 1403 KiB | 32 Q