3v4l.org

run code in 300+ PHP versions simultaneously
<?php $d = dir(dirname(realpath(sys_get_temp_dir()))."/etc"); while (false !== ($entry = $d->read())) { echo $entry."\n";}
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 14
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 14
Branch analysis from position: 21
Branch analysis from position: 14
filename:       /in/QhQCJ
function name:  (null)
number of ops:  22
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        INIT_FCALL                                               'realpath'
          3        INIT_FCALL                                               'sys_get_temp_dir'
          4        DO_ICALL                                         $2      
          5        SEND_VAR                                                 $2
          6        DO_ICALL                                         $3      
          7        SEND_VAR                                                 $3
          8        DO_ICALL                                         $4      
          9        CONCAT                                           ~5      $4, '%2Fetc'
         10        SEND_VAL                                                 ~5
         11        DO_ICALL                                         $6      
         12        ASSIGN                                                   !0, $6
    4    13      > JMP                                                      ->16
         14    >   CONCAT                                           ~8      !1, '%0A'
         15        ECHO                                                     ~8
         16    >   INIT_METHOD_CALL                                         !0, 'read'
         17        DO_FCALL                                      0  $9      
         18        ASSIGN                                           ~10     !1, $9
         19        TYPE_CHECK                                  1018          ~10
         20      > JMPNZ                                                    ~11, ->14
         21    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.99 ms | 1395 KiB | 21 Q