3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array('User' => array(1 => new SplObjectStorage)); $a['User'][1]->attach(new StdClass, new StdClass); var_dump($a);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/16cUE
function name:  (null)
number of ops:  19
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      'SplObjectStorage'
          1        DO_FCALL                                      0          
          2        INIT_ARRAY                                       ~3      $1, 1
          3        INIT_ARRAY                                       ~4      ~3, 'User'
          4        ASSIGN                                                   !0, ~4
    4     5        FETCH_DIM_R                                      ~6      !0, 'User'
          6        FETCH_DIM_R                                      ~7      ~6, 1
          7        INIT_METHOD_CALL                                         ~7, 'attach'
          8        NEW                                              $8      'StdClass'
          9        DO_FCALL                                      0          
         10        SEND_VAR_NO_REF_EX                                       $8
         11        NEW                                              $10     'StdClass'
         12        DO_FCALL                                      0          
         13        SEND_VAR_NO_REF_EX                                       $10
         14        DO_FCALL                                      0          
    6    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.35 ms | 1394 KiB | 15 Q