3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.46 ms | 1392 KiB | 13 Q