3v4l.org

run code in 500+ PHP versions simultaneously
<?php class A { var $p; } $a = new A; $b = $a; var_dump($a === $b); // bool(true) $b->p = 1; var_dump($a === $b); // bool(false)
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VaD1W
function name:  (null)
number of ops:  15
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E >   NEW                                                  $2      'A'
          1        DO_FCALL                                          0          
          2        ASSIGN                                                       !0, $2
    8     3        ASSIGN                                                       !1, !0
   10     4        INIT_FCALL                                                   'var_dump'
          5        IS_IDENTICAL                                         ~6      !0, !1
          6        SEND_VAL                                                     ~6
          7        DO_ICALL                                                     
   12     8        ASSIGN_OBJ                                                   !1, 'p'
          9        OP_DATA                                                      1
   14    10        INIT_FCALL                                                   'var_dump'
         11        IS_IDENTICAL                                         ~9      !0, !1
         12        SEND_VAL                                                     ~9
         13        DO_ICALL                                                     
         14      > RETURN                                                       1

Class A: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
178.96 ms | 2831 KiB | 14 Q