3v4l.org

run code in 300+ PHP versions simultaneously
<?php $cat = '-1'; $dog = '1'; $otherKey = 'greeting'; $content1 = 'hi mom'; $content2 = 'hi dad'; $someArray = array(); $someArray[$cat][$otherKey][] = $content1; $someArray[$dog][$otherKey][] = $content1; var_dump($someArray);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nQt6s
function name:  (null)
number of ops:  18
compiled vars:  !0 = $cat, !1 = $dog, !2 = $otherKey, !3 = $content1, !4 = $content2, !5 = $someArray
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '-1'
    4     1        ASSIGN                                                   !1, '1'
    6     2        ASSIGN                                                   !2, 'greeting'
    7     3        ASSIGN                                                   !3, 'hi+mom'
    8     4        ASSIGN                                                   !4, 'hi+dad'
   12     5        ASSIGN                                                   !5, <array>
   14     6        FETCH_DIM_W                                      $12     !5, !0
          7        FETCH_DIM_W                                      $13     $12, !2
          8        ASSIGN_DIM                                               $13
          9        OP_DATA                                                  !3
   15    10        FETCH_DIM_W                                      $15     !5, !1
         11        FETCH_DIM_W                                      $16     $15, !2
         12        ASSIGN_DIM                                               $16
         13        OP_DATA                                                  !3
   17    14        INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !5
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.61 ms | 1386 KiB | 15 Q