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[$var2]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/n0Io9
function name:  (null)
number of ops:  14
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        FETCH_DIM_R                                      ~11     !2, !1
         11        SEND_VAL                                                 ~11
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.74 ms | 1394 KiB | 15 Q