3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.88 ms | 1394 KiB | 15 Q