3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = \stdClass(); $b = \stdClass(); $a->foo = 'bar'; $b->foo = 'bar'; $ah = spl_object_hash($a); $bh = spl_object_hash($b); echo $ah . PHP_EOL; echo $bh . PHP_EOL; echo $ah == $bh ? 'true' : 'false';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 24, Position 2 = 26
Branch analysis from position: 24
1 jumps found. (Code = 42) Position 1 = 27
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RIT3S
function name:  (null)
number of ops:  29
compiled vars:  !0 = $a, !1 = $b, !2 = $ah, !3 = $bh
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL_BY_NAME                                       'stdClass'
          1        DO_FCALL                                      0  $4      
          2        ASSIGN                                                   !0, $4
    4     3        INIT_FCALL_BY_NAME                                       'stdClass'
          4        DO_FCALL                                      0  $6      
          5        ASSIGN                                                   !1, $6
    5     6        ASSIGN_OBJ                                               !0, 'foo'
          7        OP_DATA                                                  'bar'
    6     8        ASSIGN_OBJ                                               !1, 'foo'
          9        OP_DATA                                                  'bar'
    8    10        INIT_FCALL                                               'spl_object_hash'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $10     
         13        ASSIGN                                                   !2, $10
    9    14        INIT_FCALL                                               'spl_object_hash'
         15        SEND_VAR                                                 !1
         16        DO_ICALL                                         $12     
         17        ASSIGN                                                   !3, $12
   11    18        CONCAT                                           ~14     !2, '%0A'
         19        ECHO                                                     ~14
   12    20        CONCAT                                           ~15     !3, '%0A'
         21        ECHO                                                     ~15
   13    22        IS_EQUAL                                                 !2, !3
         23      > JMPZ                                                     ~16, ->26
         24    >   QM_ASSIGN                                        ~17     'true'
         25      > JMP                                                      ->27
         26    >   QM_ASSIGN                                        ~17     'false'
         27    >   ECHO                                                     ~17
         28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.87 ms | 1395 KiB | 15 Q