3v4l.org

run code in 300+ PHP versions simultaneously
<?php $d="./var/log"; echo substr(decoct( fileperms($d)), 1); print_r(scandir($d)); echo readfile($d)?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4T2PQ
function name:  (null)
number of ops:  23
compiled vars:  !0 = $d
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ASSIGN                                                   !0, '.%2Fvar%2Flog'
          1        INIT_FCALL                                               'substr'
          2        INIT_FCALL                                               'decoct'
          3        INIT_FCALL                                               'fileperms'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        SEND_VAR                                                 $2
          7        DO_ICALL                                         $3      
          8        SEND_VAR                                                 $3
          9        SEND_VAL                                                 1
         10        DO_ICALL                                         $4      
         11        ECHO                                                     $4
         12        INIT_FCALL                                               'print_r'
         13        INIT_FCALL                                               'scandir'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                         $5      
         16        SEND_VAR                                                 $5
         17        DO_ICALL                                                 
         18        INIT_FCALL                                               'readfile'
         19        SEND_VAR                                                 !0
         20        DO_ICALL                                         $7      
         21        ECHO                                                     $7
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.32 ms | 1395 KiB | 25 Q