3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new stdClass(); $b = new stdClass(); $a->foo = 1; $b->foo = 1; $c = $a; print_r(array( $a == $b, $a === $b, $a == $c, $a === $c, ));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3UjDd
function name:  (null)
number of ops:  23
compiled vars:  !0 = $a, !1 = $b, !2 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $3      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
    4     3        NEW                                              $6      'stdClass'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !1, $6
    6     6        ASSIGN_OBJ                                               !0, 'foo'
          7        OP_DATA                                                  1
    7     8        ASSIGN_OBJ                                               !1, 'foo'
          9        OP_DATA                                                  1
    9    10        ASSIGN                                                   !2, !0
   11    11        INIT_FCALL                                               'print_r'
   12    12        IS_EQUAL                                         ~12     !0, !1
         13        INIT_ARRAY                                       ~13     ~12
   13    14        IS_IDENTICAL                                     ~14     !0, !1
         15        ADD_ARRAY_ELEMENT                                ~13     ~14
   14    16        IS_EQUAL                                         ~15     !0, !2
         17        ADD_ARRAY_ELEMENT                                ~13     ~15
   15    18        IS_IDENTICAL                                     ~16     !0, !2
         19        ADD_ARRAY_ELEMENT                                ~13     ~16
         20        SEND_VAL                                                 ~13
         21        DO_ICALL                                                 
   16    22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.03 ms | 1395 KiB | 15 Q