3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.51 ms | 1394 KiB | 15 Q