3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dir = dir(getcwd()); $file = new \SplFileObject("/var", 'r'); while (($entry = $dir->read()) !== false) { // var_dump($entry); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 12
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/UOLhL
function name:  (null)
number of ops:  18
compiled vars:  !0 = $dir, !1 = $file, !2 = $entry
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'dir'
          1        INIT_FCALL                                               'getcwd'
          2        DO_ICALL                                         $3      
          3        SEND_VAR                                                 $3
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !0, $4
    4     6        NEW                                              $6      'SplFileObject'
          7        SEND_VAL_EX                                              '%2Fvar'
          8        SEND_VAL_EX                                              'r'
          9        DO_FCALL                                      0          
         10        ASSIGN                                                   !1, $6
    5    11      > JMP                                                      ->12
         12    >   INIT_METHOD_CALL                                         !0, 'read'
         13        DO_FCALL                                      0  $9      
         14        ASSIGN                                           ~10     !2, $9
         15        TYPE_CHECK                                  1018          ~10
         16      > JMPNZ                                                    ~11, ->12
    7    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.97 ms | 1395 KiB | 17 Q