3v4l.org

run code in 300+ PHP versions simultaneously
<?php $categoryMap = array("ARCH" => "Architects (Degreed & Licensed - Active & Retired)", "ARCHPROF" => "Architectural Professionals (Degreed)", "ENG" => "Engineers (Degreed & Licensed - Active & Retired)", "ENGPROF" => "Engineering Professionals (Degreed)", "NON-US" => "Non-U.S. Architects and Engineers & Architectural and Engineering Professionals", "XMISC" => "Other Supporters and A&E Students"); $occupationMap = array("L" => "Degreed & Licensed", "U" => "Degreed", "S" => "Student", "O" => "Other"); $a = array("a" => "ARCH"); function rrmdir($i) { global $categoryMap, $a; echo $categoryMap[$a[$i]]; }; rrmdir("a");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/22IAc
function name:  (null)
number of ops:  7
compiled vars:  !0 = $categoryMap, !1 = $occupationMap, !2 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    8     1        ASSIGN                                                   !1, <array>
    9     2        ASSIGN                                                   !2, <array>
   15     3        INIT_FCALL                                               'rrmdir'
          4        SEND_VAL                                                 'a'
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

Function rrmdir:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/22IAc
function name:  rrmdir
number of ops:  7
compiled vars:  !0 = $i, !1 = $categoryMap, !2 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   RECV                                             !0      
   11     1        BIND_GLOBAL                                              !1, 'categoryMap'
          2        BIND_GLOBAL                                              !2, 'a'
   12     3        FETCH_DIM_R                                      ~3      !2, !0
          4        FETCH_DIM_R                                      ~4      !1, ~3
          5        ECHO                                                     ~4
   13     6      > RETURN                                                   null

End of function rrmdir

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.3 ms | 1397 KiB | 14 Q