3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.01 ms | 1394 KiB | 15 Q