3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a=array('title'=>'a','arr'=>[]); $b=array('title'=>'b','arr'=>[]); $arr=Array(); $map=Array(); $arr[1]=$a; $map[0]=$a; $map[0][arr][]=$b; ?><h2>MAP</h2><? var_dump($arr); ?><h2>ARR</h2><? var_dump($arr);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uFKWO
function name:  (null)
number of ops:  22
compiled vars:  !0 = $a, !1 = $b, !2 = $arr, !3 = $map
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, <array>
    6     2        ASSIGN                                                   !2, <array>
    7     3        ASSIGN                                                   !3, <array>
   10     4        ASSIGN_DIM                                               !2, 1
          5        OP_DATA                                                  !0
   12     6        ASSIGN_DIM                                               !3, 0
          7        OP_DATA                                                  !0
   14     8        FETCH_CONSTANT                                   ~11     'arr'
          9        FETCH_DIM_W                                      $10     !3, 0
         10        FETCH_DIM_W                                      $12     $10, ~11
         11        ASSIGN_DIM                                               $12
         12        OP_DATA                                                  !1
   18    13        ECHO                                                     '%3Ch2%3EMAP%3C%2Fh2%3E'
   19    14        INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !2
         16        DO_ICALL                                                 
   20    17        ECHO                                                     '%3Ch2%3EARR%3C%2Fh2%3E'
   21    18        INIT_FCALL                                               'var_dump'
         19        SEND_VAR                                                 !2
         20        DO_ICALL                                                 
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.7 ms | 1395 KiB | 15 Q