3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(); $b = &$a; $a[] = $a; $b[] = $b; var_dump($a === $b);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4KbMP
function name:  (null)
number of ops:  13
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN_REF                                               !1, !0
    5     2        QM_ASSIGN                                        ~5      !0
          3        ASSIGN_DIM                                               !0
          4        OP_DATA                                                  ~5
    6     5        QM_ASSIGN                                        ~7      !1
          6        ASSIGN_DIM                                               !1
          7        OP_DATA                                                  ~7
    7     8        INIT_FCALL                                               'var_dump'
          9        IS_IDENTICAL                                     ~8      !0, !1
         10        SEND_VAL                                                 ~8
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.88 ms | 1394 KiB | 15 Q