3v4l.org

run code in 300+ PHP versions simultaneously
<?php $d = dir('/tmp'); while ($v = $d->read()) { echo "$v\n"; echo "\n-----------------------------------------------------------------\n"; readfile('/tmp/' . $v); echo "\n-----------------------------------------------------------------\n"; } $d->close();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 5
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 5
Branch analysis from position: 18
Branch analysis from position: 5
filename:       /in/RKK2u
function name:  (null)
number of ops:  21
compiled vars:  !0 = $d, !1 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'dir'
          1        SEND_VAL                                                 '%2Ftmp'
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
    3     4      > JMP                                                      ->14
    4     5    >   NOP                                                      
          6        FAST_CONCAT                                      ~4      !1, '%0A'
          7        ECHO                                                     ~4
    5     8        ECHO                                                     '%0A-----------------------------------------------------------------%0A'
    6     9        INIT_FCALL                                               'readfile'
         10        CONCAT                                           ~5      '%2Ftmp%2F', !1
         11        SEND_VAL                                                 ~5
         12        DO_ICALL                                                 
    7    13        ECHO                                                     '%0A-----------------------------------------------------------------%0A'
    3    14    >   INIT_METHOD_CALL                                         !0, 'read'
         15        DO_FCALL                                      0  $7      
         16        ASSIGN                                           ~8      !1, $7
         17      > JMPNZ                                                    ~8, ->5
    9    18    >   INIT_METHOD_CALL                                         !0, 'close'
         19        DO_FCALL                                      0          
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.02 ms | 1395 KiB | 17 Q