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 = 'aaaaaaaaaaaaaa.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 = 37
Branch analysis from position: 15
2 jumps found. (Code = 43) Position 1 = 25, Position 2 = 27
Branch analysis from position: 25
1 jumps found. (Code = 42) Position 1 = 28
Branch analysis from position: 28
2 jumps found. (Code = 43) Position 1 = 33, Position 2 = 35
Branch analysis from position: 33
1 jumps found. (Code = 42) Position 1 = 36
Branch analysis from position: 36
1 jumps found. (Code = 42) Position 1 = 38
Branch analysis from position: 38
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 35
1 jumps found. (Code = 42) Position 1 = 38
Branch analysis from position: 38
Branch analysis from position: 27
2 jumps found. (Code = 43) Position 1 = 33, Position 2 = 35
Branch analysis from position: 33
Branch analysis from position: 35
Branch analysis from position: 37
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hUQNP
function name:  (null)
number of ops:  39
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%2FhUQNP'
          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, ->37
    5    15    >   ASSIGN                                                   !2, 'aaaaaaaaaaaaaa.txt'
    6    16        NOP                                                      
         17        FAST_CONCAT                                      ~13     !2, '%0A'
         18        ECHO                                                     ~13
    7    19        INIT_METHOD_CALL                                         !0, 'addFile'
         20        SEND_VAR_EX                                              !2
         21        DO_FCALL                                      0  $14     
         22        ASSIGN                                                   !1, $14
    8    23        BOOL                                             ~16     !1
         24      > JMPZ                                                     ~16, ->27
    9    25    >   ECHO                                                     'add+ok%0A'
         26      > JMP                                                      ->28
   11    27    >   ECHO                                                     'add+failed%0A'
   13    28    >   INIT_METHOD_CALL                                         !0, 'close'
         29        DO_FCALL                                      0  $17     
         30        ASSIGN                                                   !1, $17
   14    31        BOOL                                             ~19     !1
         32      > JMPZ                                                     ~19, ->35
   15    33    >   ECHO                                                     'close+ok%0A'
         34      > JMP                                                      ->36
   17    35    >   ECHO                                                     'close+failed%0A'
         36    > > JMP                                                      ->38
   20    37    >   ECHO                                                     'open+failed%0A'
   21    38    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.63 ms | 1400 KiB | 15 Q