3v4l.org

run code in 300+ PHP versions simultaneously
<?php // As a map from objects to data $s = new SplObjectStorage(); $o1 = new StdClass; $o2 = new StdClass; $o3 = new StdClass; $s[$o1] = "data for object 1"; $s[$o2] = array(1,2,3); var_dump($s[$o2]); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/clmXM
function name:  (null)
number of ops:  21
compiled vars:  !0 = $s, !1 = $o1, !2 = $o2, !3 = $o3
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $4      'SplObjectStorage'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $4
    5     3        NEW                                              $7      'StdClass'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !1, $7
    6     6        NEW                                              $10     'StdClass'
          7        DO_FCALL                                      0          
          8        ASSIGN                                                   !2, $10
    7     9        NEW                                              $13     'StdClass'
         10        DO_FCALL                                      0          
         11        ASSIGN                                                   !3, $13
    9    12        ASSIGN_DIM                                               !0, !1
         13        OP_DATA                                                  'data+for+object+1'
   10    14        ASSIGN_DIM                                               !0, !2
         15        OP_DATA                                                  <array>
   12    16        INIT_FCALL                                               'var_dump'
         17        FETCH_DIM_R                                      ~18     !0, !2
         18        SEND_VAL                                                 ~18
         19        DO_ICALL                                                 
   13    20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.84 ms | 1395 KiB | 15 Q