3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new stdClass; $b = new stdClass; $hashA = spl_object_hash($a); $hashB = spl_object_hash($b); var_dump($hashA, $hashB, bin2hex(hex2bin($hashA) ^ hex2bin($hashB)));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IIeoG
function name:  (null)
number of ops:  30
compiled vars:  !0 = $a, !1 = $b, !2 = $hashA, !3 = $hashB
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $4      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $4
    4     3        NEW                                              $7      'stdClass'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !1, $7
    6     6        INIT_FCALL                                               'spl_object_hash'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $10     
          9        ASSIGN                                                   !2, $10
    7    10        INIT_FCALL                                               'spl_object_hash'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                         $12     
         13        ASSIGN                                                   !3, $12
    9    14        INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !2
         16        SEND_VAR                                                 !3
         17        INIT_FCALL                                               'bin2hex'
         18        INIT_FCALL                                               'hex2bin'
         19        SEND_VAR                                                 !2
         20        DO_ICALL                                         $14     
         21        INIT_FCALL                                               'hex2bin'
         22        SEND_VAR                                                 !3
         23        DO_ICALL                                         $15     
         24        BW_XOR                                           ~16     $14, $15
         25        SEND_VAL                                                 ~16
         26        DO_ICALL                                         $17     
         27        SEND_VAR                                                 $17
         28        DO_ICALL                                                 
         29      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.53 ms | 1005 KiB | 17 Q