3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.03 ms | 1386 KiB | 17 Q