3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = new stdClass; $storage = new SplObjectStorage; $storage[$foo] = $foo; var_dump(isset($storage[$foo])); var_dump($storage[$foo]); unset($storage[$foo]); var_dump(isset($storage[$foo]));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fSELh
function name:  (null)
number of ops:  22
compiled vars:  !0 = $foo, !1 = $storage
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    5     3        NEW                                              $5      'SplObjectStorage'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !1, $5
    7     6        ASSIGN_DIM                                               !1, !0
          7        OP_DATA                                                  !0
    9     8        INIT_FCALL                                               'var_dump'
          9        ISSET_ISEMPTY_DIM_OBJ                         0  ~9      !1, !0
         10        SEND_VAL                                                 ~9
         11        DO_ICALL                                                 
   10    12        INIT_FCALL                                               'var_dump'
         13        FETCH_DIM_R                                      ~11     !1, !0
         14        SEND_VAL                                                 ~11
         15        DO_ICALL                                                 
   11    16        UNSET_DIM                                                !1, !0
   12    17        INIT_FCALL                                               'var_dump'
         18        ISSET_ISEMPTY_DIM_OBJ                         0  ~13     !1, !0
         19        SEND_VAL                                                 ~13
         20        DO_ICALL                                                 
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
178.22 ms | 1395 KiB | 15 Q