3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = new SplObjectStorage(); $o1 = new StdClass; $o2 = new StdClass; $o3 = new StdClass; $s[$o1] = "data for object 1"; $s[$o2] = array(1,2,3); echo $s[$o1];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Hddgo
function name:  (null)
number of ops:  19
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        FETCH_DIM_R                                      ~18     !0, !1
         17        ECHO                                                     ~18
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148 ms | 1393 KiB | 13 Q