3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = new ArrayIterator(get_declared_classes()); $bar = new SPLMinHeap(); foreach($foo as $class) { $bar->insert($class); } foreach($bar as $class) { echo $class . PHP_EOL; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 10, Position 2 = 15
Branch analysis from position: 10
2 jumps found. (Code = 78) Position 1 = 11, Position 2 = 15
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 15
2 jumps found. (Code = 77) Position 1 = 17, Position 2 = 21
Branch analysis from position: 17
2 jumps found. (Code = 78) Position 1 = 18, Position 2 = 21
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
Branch analysis from position: 15
filename:       /in/9nNnq
function name:  (null)
number of ops:  23
compiled vars:  !0 = $foo, !1 = $bar, !2 = $class
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $3      'ArrayIterator'
          1        INIT_FCALL                                               'get_declared_classes'
          2        DO_ICALL                                         $4      
          3        SEND_VAR_NO_REF_EX                                       $4
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !0, $3
    4     6        NEW                                              $7      'SPLMinHeap'
          7        DO_FCALL                                      0          
          8        ASSIGN                                                   !1, $7
    6     9      > FE_RESET_R                                       $10     !0, ->15
         10    > > FE_FETCH_R                                               $10, !2, ->15
    7    11    >   INIT_METHOD_CALL                                         !1, 'insert'
         12        SEND_VAR_EX                                              !2
         13        DO_FCALL                                      0          
    6    14      > JMP                                                      ->10
         15    >   FE_FREE                                                  $10
   10    16      > FE_RESET_R                                       $12     !1, ->21
         17    > > FE_FETCH_R                                               $12, !2, ->21
   11    18    >   CONCAT                                           ~13     !2, '%0A'
         19        ECHO                                                     ~13
   10    20      > JMP                                                      ->17
         21    >   FE_FREE                                                  $12
   12    22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.92 ms | 1395 KiB | 15 Q