3v4l.org

run code in 500+ PHP versions simultaneously
<?php $f = new SplFileInfo("/dev/null"); $h = $f->openFile(); while($h->valid()){ $h->current(); // comment out this line to get an endless loop $h->next(); } die("done");
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 = 15, Position 2 = 8
Branch analysis from position: 15
1 jumps found. (Code = 61) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 8
Branch analysis from position: 15
Branch analysis from position: 8
filename:       /in/W0rL2
function name:  (null)
number of ops:  19
compiled vars:  !0 = $f, !1 = $h
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   NEW                                                  $2      'SplFileInfo'
          1        SEND_VAL_EX                                                  '%2Fdev%2Fnull'
          2        DO_FCALL                                          0          
          3        ASSIGN                                                       !0, $2
    4     4        INIT_METHOD_CALL                                             !0, 'openFile'
          5        DO_FCALL                                          0  $5      
          6        ASSIGN                                                       !1, $5
    5     7      > JMP                                                          ->12
    6     8    >   INIT_METHOD_CALL                                             !1, 'current'
          9        DO_FCALL                                          0          
    7    10        INIT_METHOD_CALL                                             !1, 'next'
         11        DO_FCALL                                          0          
    5    12    >   INIT_METHOD_CALL                                             !1, 'valid'
         13        DO_FCALL                                          0  $9      
         14      > JMPNZ                                                        $9, ->8
    9    15    > > INIT_FCALL                                                   'exit'
         16*       SEND_VAL                                                     'done'
         17*       DO_ICALL                                                     
         18*     > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
231.75 ms | 3386 KiB | 14 Q