3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.73 ms | 1393 KiB | 15 Q