3v4l.org

run code in 300+ PHP versions simultaneously
<?php $store = new SplObjectStorage; $store[new StdClass] = 1; $store[new StdClass] = 2; $store[new StdClass] = 3; foreach ($store as $key => $value) { var_dump($key, $value); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 16, Position 2 = 23
Branch analysis from position: 16
2 jumps found. (Code = 78) Position 1 = 17, Position 2 = 23
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
filename:       /in/75HIt
function name:  (null)
number of ops:  25
compiled vars:  !0 = $store, !1 = $value, !2 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $3      'SplObjectStorage'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
    5     3        NEW                                              $6      'StdClass'
          4        DO_FCALL                                      0          
          5        ASSIGN_DIM                                               !0, $6
          6        OP_DATA                                                  1
    6     7        NEW                                              $9      'StdClass'
          8        DO_FCALL                                      0          
          9        ASSIGN_DIM                                               !0, $9
         10        OP_DATA                                                  2
    7    11        NEW                                              $12     'StdClass'
         12        DO_FCALL                                      0          
         13        ASSIGN_DIM                                               !0, $12
         14        OP_DATA                                                  3
    9    15      > FE_RESET_R                                       $15     !0, ->23
         16    > > FE_FETCH_R                                       ~16     $15, !1, ->23
         17    >   ASSIGN                                                   !2, ~16
   10    18        INIT_FCALL                                               'var_dump'
         19        SEND_VAR                                                 !2
         20        SEND_VAR                                                 !1
         21        DO_ICALL                                                 
    9    22      > JMP                                                      ->16
         23    >   FE_FREE                                                  $15
   11    24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.76 ms | 1395 KiB | 15 Q