3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo `ls /etc/*-release`; echo "\n\n"; $d = opendir('.'); while ($file = readdir($d)) echo $file."\n"; closedir($d);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 10
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 10
Branch analysis from position: 17
Branch analysis from position: 10
filename:       /in/Vo6Lg
function name:  (null)
number of ops:  21
compiled vars:  !0 = $d, !1 = $file
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'shell_exec'
          1        SEND_VAL                                                 'ls+%2Fetc%2F%2A-release'
          2        DO_ICALL                                         $2      
          3        ECHO                                                     $2
    5     4        ECHO                                                     '%0A%0A'
    7     5        INIT_FCALL                                               'opendir'
          6        SEND_VAL                                                 '.'
          7        DO_ICALL                                         $3      
          8        ASSIGN                                                   !0, $3
    8     9      > JMP                                                      ->12
         10    >   CONCAT                                           ~5      !1, '%0A'
         11        ECHO                                                     ~5
         12    >   INIT_FCALL                                               'readdir'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $6      
         15        ASSIGN                                           ~7      !1, $6
         16      > JMPNZ                                                    ~7, ->10
    9    17    >   INIT_FCALL                                               'closedir'
         18        SEND_VAR                                                 !0
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.62 ms | 1395 KiB | 21 Q