3v4l.org

run code in 300+ PHP versions simultaneously
<?php $categories = array('ammunition'=>'Ammunition', 'brass'=>'Brass Casings', 'bullets'=>'Projectiles', 'guns'=>'Firearms', 'magazines'=>'Magazines', 'powder'=>'Powder', 'primers'=>'Primers', 'reloading_misc'=>'Reloading Equipment'); $categories = '"'.implode('", "', $categories).'"'; echo $categories.\r\n; echo $categories["ammunition"]; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PofUE
function name:  (null)
number of ops:  14
compiled vars:  !0 = $categories
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        INIT_FCALL                                               'implode'
          2        SEND_VAL                                                 '%22%2C+%22'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $2      
          5        CONCAT                                           ~3      '%22', $2
          6        CONCAT                                           ~4      ~3, '%22'
          7        ASSIGN                                                   !0, ~4
    4     8        FETCH_CONSTANT                                   ~6      'r%5Cn'
          9        CONCAT                                           ~7      !0, ~6
         10        ECHO                                                     ~7
    5    11        FETCH_DIM_R                                      ~8      !0, 'ammunition'
         12        ECHO                                                     ~8
    6    13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.56 ms | 1398 KiB | 15 Q