3v4l.org

run code in 300+ PHP versions simultaneously
<?php $storage = new \SplObjectStorage; $storage->attach(new \stdClass); $storage->attach(new \stdClass); echo $storage->count();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pfhi2
function name:  (null)
number of ops:  17
compiled vars:  !0 = $storage
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      'SplObjectStorage'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
    5     3        INIT_METHOD_CALL                                         !0, 'attach'
          4        NEW                                              $4      'stdClass'
          5        DO_FCALL                                      0          
          6        SEND_VAR_NO_REF_EX                                       $4
          7        DO_FCALL                                      0          
    6     8        INIT_METHOD_CALL                                         !0, 'attach'
          9        NEW                                              $7      'stdClass'
         10        DO_FCALL                                      0          
         11        SEND_VAR_NO_REF_EX                                       $7
         12        DO_FCALL                                      0          
    8    13        INIT_METHOD_CALL                                         !0, 'count'
         14        DO_FCALL                                      0  $10     
         15        ECHO                                                     $10
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179.2 ms | 1393 KiB | 13 Q