3v4l.org

run code in 300+ PHP versions simultaneously
<?php $os = new SplObjectStorage; $obj = new StdClass; $obj2 = new StdClass; $os[$obj][] = $obj2; var_dump($os->count());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qnbMg
function name:  (null)
number of ops:  18
compiled vars:  !0 = $os, !1 = $obj, !2 = $obj2
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                                                   !1, $6
    6     6        NEW                                              $9      'StdClass'
          7        DO_FCALL                                      0          
          8        ASSIGN                                                   !2, $9
    8     9        FETCH_DIM_W                                      $12     !0, !1
         10        ASSIGN_DIM                                               $12
         11        OP_DATA                                                  !2
   10    12        INIT_FCALL                                               'var_dump'
         13        INIT_METHOD_CALL                                         !0, 'count'
         14        DO_FCALL                                      0  $14     
         15        SEND_VAR                                                 $14
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.29 ms | 1394 KiB | 15 Q