3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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
Jump found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
Jump found. (Code = 44) Position 1 = 15, Position 2 = 8
Branch analysis from position: 15
Jump found. (Code = 79) Position 1 = -2
Branch analysis from position: 8
Jump 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:  17
compiled vars:  !0 = $f, !1 = $h
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   NEW                                              $2      :-5
         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    > > EXIT                                                     'done'
        16*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.1.0