3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo getenv("PATH"); $h = opendir("/"); while (false !== $f = readdir($h)) {echo $f;}
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 = 16, Position 2 = 9
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 9
Branch analysis from position: 16
Branch analysis from position: 9
filename:       /in/aR6Xr
function name:  (null)
number of ops:  17
compiled vars:  !0 = $h, !1 = $f
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'getenv'
          1        SEND_VAL                                                 'PATH'
          2        DO_ICALL                                         $2      
          3        ECHO                                                     $2
    4     4        INIT_FCALL                                               'opendir'
          5        SEND_VAL                                                 '%2F'
          6        DO_ICALL                                         $3      
          7        ASSIGN                                                   !0, $3
    5     8      > JMP                                                      ->10
          9    >   ECHO                                                     !1
         10    >   INIT_FCALL                                               'readdir'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $5      
         13        ASSIGN                                           ~6      !1, $5
         14        TYPE_CHECK                                  1018          ~6
         15      > JMPNZ                                                    ~7, ->9
         16    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.93 ms | 1395 KiB | 19 Q