3v4l.org

run code in 300+ PHP versions simultaneously
<?php const A = [1, 2, 3]; const B = A; var_dump(B); const A = 1; var_dump(B);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UmJMJ
function name:  (null)
number of ops:  12
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CONST                                            'A', <array>
    4     1        DECLARE_CONST                                            'B', <const ast>
    5     2        INIT_FCALL                                               'var_dump'
          3        FETCH_CONSTANT                                   ~0      'B'
          4        SEND_VAL                                                 ~0
          5        DO_ICALL                                                 
    6     6        DECLARE_CONST                                            'A', 1
    7     7        INIT_FCALL                                               'var_dump'
          8        FETCH_CONSTANT                                   ~2      'B'
          9        SEND_VAL                                                 ~2
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.71 ms | 1394 KiB | 15 Q