3v4l.org

run code in 300+ PHP versions simultaneously
<?php $o1 = (object) array('a' => 1); $h1 = spl_object_hash($o1); unset($o1); $o2 = (object) array('b' => 1); $h2 = spl_object_hash($o2); echo "$h1\n$h2"; var_dump($h1 === $h2);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/F86Op
function name:  (null)
number of ops:  22
compiled vars:  !0 = $o1, !1 = $h1, !2 = $o2, !3 = $h2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   CAST                                          8  ~4      <array>
          1        ASSIGN                                                   !0, ~4
    5     2        INIT_FCALL                                               'spl_object_hash'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $6      
          5        ASSIGN                                                   !1, $6
    6     6        UNSET_CV                                                 !0
    8     7        CAST                                          8  ~8      <array>
          8        ASSIGN                                                   !2, ~8
    9     9        INIT_FCALL                                               'spl_object_hash'
         10        SEND_VAR                                                 !2
         11        DO_ICALL                                         $10     
         12        ASSIGN                                                   !3, $10
   11    13        ROPE_INIT                                     3  ~13     !1
         14        ROPE_ADD                                      1  ~13     ~13, '%0A'
         15        ROPE_END                                      2  ~12     ~13, !3
         16        ECHO                                                     ~12
   12    17        INIT_FCALL                                               'var_dump'
         18        IS_IDENTICAL                                     ~15     !1, !3
         19        SEND_VAL                                                 ~15
         20        DO_ICALL                                                 
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.09 ms | 1395 KiB | 17 Q