3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new stdClass; $a->id = 1; $b = $a; $b->id = 2; var_dump($a->id, $b->id); // int 2 e int 2
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nCG4J
function name:  (null)
number of ops:  15
compiled vars:  !0 = $a, !1 = $b
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   2     0  E >   NEW                                              $2      :25
         1        DO_FCALL                                      0          
         2        QM_ASSIGN                                                !0
   4     3        ASSIGN_SUB                                    8          !0, 'id'
         4        OP_DATA                                                  1
   6     5        QM_ASSIGN                                                !1
   8     6        ASSIGN_SUB                                   32          !1, 'id'
         7        OP_DATA                                                  2
  10     8        INIT_FCALL                                               'var_dump'
         9        FETCH_OBJ_R                                      ~8      !0, 'id'
        10        SEND_VAL                                                 ~8
        11        FETCH_OBJ_R                                      ~9      !1, 'id'
        12        SEND_VAL                                                 ~9
        13        DO_ICALL                                                 
        14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
15.68 ms | 461 KiB | 7 Q