3v4l.org

run code in 300+ PHP versions simultaneously
<?php $storage = new SplObjectStorage(); $storage->attach(new \stdClass()); foreach ($storage as $key => $val) { var_dump($key, $val); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 9, Position 2 = 16
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 16
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/J4M0N
function name:  (null)
number of ops:  18
compiled vars:  !0 = $storage, !1 = $val, !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
    4     3        INIT_METHOD_CALL                                         !0, 'attach'
          4        NEW                                              $6      'stdClass'
          5        DO_FCALL                                      0          
          6        SEND_VAR_NO_REF_EX                                       $6
          7        DO_FCALL                                      0          
    6     8      > FE_RESET_R                                       $9      !0, ->16
          9    > > FE_FETCH_R                                       ~10     $9, !1, ->16
         10    >   ASSIGN                                                   !2, ~10
    7    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !2
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                                 
    6    15      > JMP                                                      ->9
         16    >   FE_FREE                                                  $9
    8    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.51 ms | 997 KiB | 14 Q