3v4l.org

run code in 500+ PHP versions simultaneously
<?php var_dump(decoct(umask())); $sFile = tempnam('/tmp', 'test'); var_dump(decoct(stat($sFile)['mode'])); $phar = new \PharData('/tmp/test.tar', null, null, \Phar::TAR); $phar->addFile($sFile, 'test-file-phar'); $phar->extractTo('/tmp/'); var_dump(decoct(stat('/tmp/test-file-phar')['mode']));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PO3hN
function name:  (null)
number of ops:  48
compiled vars:  !0 = $sFile, !1 = $phar
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'var_dump'
          1        INIT_FCALL                                                   'decoct'
          2        INIT_FCALL                                                   'umask'
          3        DO_ICALL                                             $2      
          4        SEND_VAR                                                     $2
          5        DO_ICALL                                             $3      
          6        SEND_VAR                                                     $3
          7        DO_ICALL                                                     
    5     8        INIT_FCALL                                                   'tempnam'
          9        SEND_VAL                                                     '%2Ftmp'
         10        SEND_VAL                                                     'test'
         11        DO_ICALL                                             $5      
         12        ASSIGN                                                       !0, $5
    6    13        INIT_FCALL                                                   'var_dump'
         14        INIT_FCALL                                                   'decoct'
         15        INIT_FCALL                                                   'stat'
         16        SEND_VAR                                                     !0
         17        DO_ICALL                                             $7      
         18        FETCH_DIM_R                                          ~8      $7, 'mode'
         19        SEND_VAL                                                     ~8
         20        DO_ICALL                                             $9      
         21        SEND_VAR                                                     $9
         22        DO_ICALL                                                     
    8    23        NEW                                                  $11     'PharData'
         24        SEND_VAL_EX                                                  '%2Ftmp%2Ftest.tar'
         25        SEND_VAL_EX                                                  null
         26        SEND_VAL_EX                                                  null
         27        SEND_VAL_EX                                                  2
         28        DO_FCALL                                          0          
         29        ASSIGN                                                       !1, $11
    9    30        INIT_METHOD_CALL                                             !1, 'addFile'
         31        SEND_VAR_EX                                                  !0
         32        SEND_VAL_EX                                                  'test-file-phar'
         33        DO_FCALL                                          0          
   10    34        INIT_METHOD_CALL                                             !1, 'extractTo'
         35        SEND_VAL_EX                                                  '%2Ftmp%2F'
         36        DO_FCALL                                          0          
   12    37        INIT_FCALL                                                   'var_dump'
         38        INIT_FCALL                                                   'decoct'
         39        INIT_FCALL                                                   'stat'
         40        SEND_VAL                                                     '%2Ftmp%2Ftest-file-phar'
         41        DO_ICALL                                             $16     
         42        FETCH_DIM_R                                          ~17     $16, 'mode'
         43        SEND_VAL                                                     ~17
         44        DO_ICALL                                             $18     
         45        SEND_VAR                                                     $18
         46        DO_ICALL                                                     
         47      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
200.48 ms | 2616 KiB | 18 Q