3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = [ 0 => [1 => 2, 2 => 2], 1 => [1 => 2, 2 => 4], ]; $compliance = 1; $risk = 2; print $data[$compliance][$risk];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PfVDm
function name:  (null)
number of ops:  7
compiled vars:  !0 = $data, !1 = $compliance, !2 = $risk
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    8     1        ASSIGN                                                   !1, 1
    9     2        ASSIGN                                                   !2, 2
   11     3        FETCH_DIM_R                                      ~6      !0, !1
          4        FETCH_DIM_R                                      ~7      ~6, !2
          5        ECHO                                                     ~7
          6      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
133.66 ms | 1000 KiB | 13 Q