3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.85 ms | 1395 KiB | 17 Q