3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (class_exists('RecursiveDirectoryIterator')) { $i1 = new RecursiveDirectoryIterator('/tmp'); $i2 = new RecursiveDirectoryIterator('/home'); foreach($i1 as $f) {} foreach($i2 as $f) {} var_dump($i1 == $i2); } else { var_dump('Class RecursiveDirectoryIterator does not exist'); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 25
Branch analysis from position: 4
2 jumps found. (Code = 77) Position 1 = 13, Position 2 = 15
Branch analysis from position: 13
2 jumps found. (Code = 78) Position 1 = 14, Position 2 = 15
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
Branch analysis from position: 15
2 jumps found. (Code = 77) Position 1 = 17, Position 2 = 19
Branch analysis from position: 17
2 jumps found. (Code = 78) Position 1 = 18, Position 2 = 19
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 28
Branch analysis from position: 28
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
Branch analysis from position: 15
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pggLd
function name:  (null)
number of ops:  29
compiled vars:  !0 = $i1, !1 = $i2, !2 = $f
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'class_exists'
          1        SEND_VAL                                                 'RecursiveDirectoryIterator'
          2        DO_ICALL                                         $3      
          3      > JMPZ                                                     $3, ->25
    4     4    >   NEW                                              $4      'RecursiveDirectoryIterator'
          5        SEND_VAL_EX                                              '%2Ftmp'
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !0, $4
    5     8        NEW                                              $7      'RecursiveDirectoryIterator'
          9        SEND_VAL_EX                                              '%2Fhome'
         10        DO_FCALL                                      0          
         11        ASSIGN                                                   !1, $7
    7    12      > FE_RESET_R                                       $10     !0, ->15
         13    > > FE_FETCH_R                                               $10, !2, ->15
         14    > > JMP                                                      ->13
         15    >   FE_FREE                                                  $10
    8    16      > FE_RESET_R                                       $11     !1, ->19
         17    > > FE_FETCH_R                                               $11, !2, ->19
         18    > > JMP                                                      ->17
         19    >   FE_FREE                                                  $11
   10    20        INIT_FCALL                                               'var_dump'
         21        IS_EQUAL                                         ~12     !0, !1
         22        SEND_VAL                                                 ~12
         23        DO_ICALL                                                 
         24      > JMP                                                      ->28
   12    25    >   INIT_FCALL                                               'var_dump'
         26        SEND_VAL                                                 'Class+RecursiveDirectoryIterator+does+not+exist'
         27        DO_ICALL                                                 
   13    28    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.3 ms | 1396 KiB | 17 Q