3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.8 ms | 1385 KiB | 15 Q