3v4l.org

run code in 300+ PHP versions simultaneously
<?php $zip = new ZipArchive; $res = $zip->open(dirname(__FILE__) . '/bug64342.zip', ZipArchive::CREATE); if ($res === TRUE) { $f = md5(uniqid()) . '.txt'; echo "$f\n"; $res = $zip->addFile($f); if (true == $res) { echo "add ok\n"; } else { echo "add failed\n"; } $res = $zip->close(); if (true == $res) { echo "close ok\n"; } else { echo "close failed\n"; } } else { echo "open failed\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 43
Branch analysis from position: 15
2 jumps found. (Code = 43) Position 1 = 31, Position 2 = 33
Branch analysis from position: 31
1 jumps found. (Code = 42) Position 1 = 34
Branch analysis from position: 34
2 jumps found. (Code = 43) Position 1 = 39, Position 2 = 41
Branch analysis from position: 39
1 jumps found. (Code = 42) Position 1 = 42
Branch analysis from position: 42
1 jumps found. (Code = 42) Position 1 = 44
Branch analysis from position: 44
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 41
1 jumps found. (Code = 42) Position 1 = 44
Branch analysis from position: 44
Branch analysis from position: 33
2 jumps found. (Code = 43) Position 1 = 39, Position 2 = 41
Branch analysis from position: 39
Branch analysis from position: 41
Branch analysis from position: 43
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DiEsW
function name:  (null)
number of ops:  45
compiled vars:  !0 = $zip, !1 = $res, !2 = $f
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $3      'ZipArchive'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
    3     3        INIT_METHOD_CALL                                         !0, 'open'
          4        INIT_FCALL                                               'dirname'
          5        SEND_VAL                                                 '%2Fin%2FDiEsW'
          6        DO_ICALL                                         $6      
          7        CONCAT                                           ~7      $6, '%2Fbug64342.zip'
          8        SEND_VAL_EX                                              ~7
          9        FETCH_CLASS_CONSTANT                             ~8      'ZipArchive', 'CREATE'
         10        SEND_VAL_EX                                              ~8
         11        DO_FCALL                                      0  $9      
         12        ASSIGN                                                   !1, $9
    4    13        TYPE_CHECK                                    8          !1
         14      > JMPZ                                                     ~11, ->43
    5    15    >   INIT_FCALL                                               'md5'
         16        INIT_FCALL                                               'uniqid'
         17        DO_ICALL                                         $12     
         18        SEND_VAR                                                 $12
         19        DO_ICALL                                         $13     
         20        CONCAT                                           ~14     $13, '.txt'
         21        ASSIGN                                                   !2, ~14
    6    22        NOP                                                      
         23        FAST_CONCAT                                      ~16     !2, '%0A'
         24        ECHO                                                     ~16
    7    25        INIT_METHOD_CALL                                         !0, 'addFile'
         26        SEND_VAR_EX                                              !2
         27        DO_FCALL                                      0  $17     
         28        ASSIGN                                                   !1, $17
    8    29        BOOL                                             ~19     !1
         30      > JMPZ                                                     ~19, ->33
    9    31    >   ECHO                                                     'add+ok%0A'
         32      > JMP                                                      ->34
   11    33    >   ECHO                                                     'add+failed%0A'
   13    34    >   INIT_METHOD_CALL                                         !0, 'close'
         35        DO_FCALL                                      0  $20     
         36        ASSIGN                                                   !1, $20
   14    37        BOOL                                             ~22     !1
         38      > JMPZ                                                     ~22, ->41
   15    39    >   ECHO                                                     'close+ok%0A'
         40      > JMP                                                      ->42
   17    41    >   ECHO                                                     'close+failed%0A'
         42    > > JMP                                                      ->44
   20    43    >   ECHO                                                     'open+failed%0A'
   21    44    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.67 ms | 1405 KiB | 19 Q