3v4l.org

run code in 300+ PHP versions simultaneously
<?php $enumElectricCompany = array( 'Alabama Power' => '00000195', 'Allegheny Power' => '00000000', 'Alliant' => '00020856', 'Alpena Power Company' => '00000392', 'Ameren' => '00003252', 'American Electric Power' => '00000000', 'APS' => '00000000', 'Atlantic Energy East Coast' => '00000000', 'Avista Corporation' => '00000000', 'Baltimore Gas and Electric' => '00001167', 'Bangor Hydro' => '00001179', 'Bear Valley Electric Service' => '00017612', 'Black Hills Corporation' => '00000000', 'Boston Edison' => '00001998', 'Carolina Power and Light Company' => '00003046', 'Central and Southwest System' => '00000000', 'Central Hudson Gas and Electric Corporation' => '00000000', 'Central Illinois Light Company' => '00000000', 'Central Maine Power Company' => '00003266', 'Central Vermont Public Service Corp.' => 'Inc.', 'Citizens Utilities' => '00000000', 'Citizens Electric Company' => '00003597', 'CLECO' => '00003774', 'CMP Group' => '00000000', 'CMS Energy' => '00000000', 'Commonwealth Energy' => '00000000', 'Con Edison' => '00001998', 'Conectiv' => '00000000', 'Connecticut Light and Power Company' => '00004176', 'Consumers Energy Company' => '00004254', 'CONVEX' => '00000000', 'Dayton Power and Light Co. Ohio' => '00000000', 'Delmarva Power and Light' => '00005027', 'Detroit Edison' => '00005109', 'Dominion Resources' => '00000000', 'DQE' => '00000000', 'DTE Energy' => '00000000', 'Duke Energy Carolinas Inc.' => '00000000', 'Duke Energy Indiana Inc.' => '00000000', 'Duke Energy Kentucky Inc.' => '00000000', 'Duke Energy Ohio Inc.' => '00000000', 'Eastern Utilities' => '00000000', 'Edison International' => '00000000', 'Edison Sault Electric Company' => '00005659', 'El Paso Electric Company' => '00005701', 'Empire District Electric Company' => '00005860', 'Energy West' => '00000000', 'Entergy Corporation' => '00000000', 'FirstEnergy' => '00000000', 'Florida Power and Light Company' => '00006452', 'Florida Power Corporation' => '00000000', 'Florida Progress Corporation' => '00000000', 'Florida Public Utilities Company' => '00006457', 'General Public Utilities System' => '00000000', 'Georgia Power' => '00007140', 'Granite State Electric' => '00026510', 'Green Mountain Power Corporation' => '00000000', 'Gulf Power Company' => '00007801', 'Hawaiian Electric Company' => '00019547', 'Hawaiian Electric Industries' => '00000000', 'Houston Industries' => '00000000', 'Houston Lighting and Power Company' => '00000000', 'IDACORP' => '00000000', 'Idaho Power Company' => '00009191', 'IES Industries' => '00000000', 'Illinois Power' => '00009208', 'Illinova' => '00000000', 'Indianapolis Power and Light Company' => '00009273', 'Interstate Power Company' => '00009162', 'Island Energy' => '00000000', 'Kansas City Power and Light Company' => '00010000', 'Kauai Electric' => '00000000', 'KU Energy Corporation' => '00000000', 'Louisville Gas and Electric' => '00011249', 'Lockhart Power Company' => '00011118', 'Madison Gas and Electric' => '00011479', 'Maine Public Service Company' => '00011522', 'Massachusetts Electric Company' => '00011804', 'MidAmerican Energy' => '00012341', 'Minnesota Power' => '00012647', 'Mississippi Power Company' => '00012686', 'Modern Electric Water Company' => '00012744', 'Montana Power Company' => '00000000', 'Montana-Dakota Utilities Co.' => '00012819', 'Nantahala Power and Light' => '00000000', 'Narragansett Electric' => '00013214', 'National Grid USA' => '00000000', 'NEES' => '00000000', 'Nevada Power Company' => '00013407', 'New Century Energies' => '00000000', 'New Jersey Resources Corporation' => '00000000', 'New York State Electric and Gas' => '00013511', 'Newport Electric' => '00000000', 'Niagara Mohawk' => '00013573', 'Northeast Utilities' => '00000000', 'Northern Indiana Public Service Company' => '00013756', 'Northern States Power' => '00000000', 'Northwestern Public Service' => '00000000', 'NSTAR' => '00054913', 'Ohio Edison' => '00013998', 'Oklahoma Gas and Electric' => '00014063', 'Orange and Rockland Utilities' => '00000000', 'Other' => '00000000', 'Otter Tail Power Company' => '00014232', 'Pacific Enterprises' => '00000000', 'Pacific Gas and Electric' => '00014328', 'PacifiCorp' => '00014354', 'PECO Energy' => '00014940', 'Pennsylvania Power Company' => '00014716', 'Peoples Energy Corporation' => '00000000', 'Pinnacle West' => '00000000', 'PNM' => '00000000', 'Portland General Electric Co.' => '00015248', 'Potomac Electric Power Company' => '00000000', 'PPL' => '00014715', 'Public Service Company of New Mexico' => '00000000', 'Public Service Electric and Gas' => '00015477', 'Public Service Enterprise Group' => '00000000', 'Public Service of New Hampshire' => '00000000', 'Rochester Gas and Electric' => '00016183', 'San Diego Gas and Electric' => '00016609', 'Savannah Electric' => '00016687', 'SCANA Corporation' => '00000000', 'Sempra Energy' => '00000000', 'Sierra Pacific' => '00017166', 'Southern California Edison' => '00017609', 'Southern Indiana Gas And Electric Company' => '00017633', 'St. Joseph Light and Power' => '00000000', 'STP Nuclear Operating Company' => '00000000', 'Tampa Electric' => '00018454', 'TECO Energy' => '00000000', 'Tennessee Power Company' => '00000000', 'Texas Utilities System' => '00000000', 'Texas-New Mexico Power Company' => '00040051', 'The Southern Company' => '00000000', 'TNP Enterprises' => '00000000', 'Tucson Electric Power' => '00024211', 'TXU Electric and Gas' => '00000000', 'TXU' => '00017699', 'UGI Corporation' => '00000000', 'UI' => '00009832', 'Unicom Corporation' => '00000000', 'Union Electric' => '00019435', 'UniSource Energy Corporation' => '00000000', 'UNITIL' => '00004148', 'Upper Peninsula Power Company' => '00019578', 'UtiliCorp United' => '00000000', 'Virginia Power' => '00000000', 'Wellsboro Electric Company' => '00020334', 'Western Massachusetts Electric Company' => '00020455', 'Western Resources' => '00000000', 'Wisconsin Electric' => '00020847', 'Wisconsin Energy Corporation' => '00000000', 'Wisconsin Fuel and Light Company' => '00000000', 'Wisconsin Power and Light Co.' => '00000000', 'Wisconsin Public Service Corporation' => '00000000', 'WPS Resources Corporation' => '00000000', 'Xcel Energy' => '00013780', 'Yankee Atomic Electric Company' => '00000000' ); if(array_key_exists('UI', $enumElectricCompany)){ echo $enumElectricCompany['UI']; } else{ echo '00000000'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 6
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4ACAe
function name:  (null)
number of ops:  8
compiled vars:  !0 = $enumElectricCompany
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
  165     1        ARRAY_KEY_EXISTS                                         'UI', !0
          2      > JMPZ                                                     ~2, ->6
  166     3    >   FETCH_DIM_R                                      ~3      !0, 'UI'
          4        ECHO                                                     ~3
  165     5      > JMP                                                      ->7
  169     6    >   ECHO                                                     '00000000'
  170     7    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.65 ms | 1001 KiB | 13 Q