3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo getenv("PATH"); $h = opendir("/"); while (false !== $f = readdir($h)) {echo $f . "\n";}
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 9
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 9
Branch analysis from position: 17
Branch analysis from position: 9
filename:       /in/tONtu
function name:  (null)
number of ops:  18
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                                                      ->11
          9    >   CONCAT                                           ~5      !1, '%0A'
         10        ECHO                                                     ~5
         11    >   INIT_FCALL                                               'readdir'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                         $6      
         14        ASSIGN                                           ~7      !1, $6
         15        TYPE_CHECK                                  1018          ~7
         16      > JMPNZ                                                    ~8, ->9
         17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.76 ms | 1395 KiB | 19 Q