3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array(); $v = 'before'; $arr[][$v = 'after'] = $v; $v = 'before'; $arr[][$v] = $v = 'after'; $v = 'before'; $arr[][$v . ''] = $v = 'after'; var_export($arr);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mvp0t
function name:  (null)
number of ops:  21
compiled vars:  !0 = $arr, !1 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        ASSIGN                                                   !1, 'before'
    6     2        ASSIGN                                           ~5      !1, 'after'
          3        FETCH_DIM_W                                      $4      !0
          4        ASSIGN_DIM                                               $4, ~5
          5        OP_DATA                                                  !1
    8     6        ASSIGN                                                   !1, 'before'
    9     7        ASSIGN                                           ~10     !1, 'after'
          8        FETCH_DIM_W                                      $8      !0
          9        ASSIGN_DIM                                               $8, !1
         10        OP_DATA                                                  ~10
   11    11        ASSIGN                                                   !1, 'before'
   12    12        CONCAT                                           ~13     !1, ''
         13        ASSIGN                                           ~15     !1, 'after'
         14        FETCH_DIM_W                                      $12     !0
         15        ASSIGN_DIM                                               $12, ~13
         16        OP_DATA                                                  ~15
   14    17        INIT_FCALL                                               'var_export'
         18        SEND_VAR                                                 !0
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
192.82 ms | 1451 KiB | 14 Q