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'; }

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.5.00.0120.00819.86
8.4.150.0020.00014.05
8.4.140.0120.00917.52
8.4.130.0070.00918.63
8.4.120.0120.00922.21
8.4.110.0150.00519.84
8.4.100.0120.00617.93
8.4.90.0090.01120.53
8.4.80.0090.00719.00
8.4.70.0110.00919.03
8.4.60.0130.00718.68
8.4.50.0150.00518.71
8.4.40.0150.00619.43
8.4.30.0160.00619.66
8.4.20.0070.01317.78
8.4.10.0040.01417.57
8.3.280.0180.00618.51
8.3.270.0110.00816.30
8.3.260.0130.00616.59
8.3.250.0120.00616.42
8.3.240.0110.00818.34
8.3.230.0040.01016.55
8.3.220.0040.00318.73
8.3.210.0100.00918.44
8.3.200.0130.00616.59
8.3.190.0040.00617.14
8.3.180.0100.00719.02
8.3.170.0130.00418.95
8.3.160.0130.00618.93
8.3.150.0080.00017.34
8.3.140.0000.00718.79
8.3.130.0070.01018.32
8.3.120.0120.00320.63
8.3.110.0100.00720.94
8.3.100.0030.00524.06
8.3.90.0110.00726.77
8.3.80.0070.00317.97
8.3.70.0000.01516.63
8.3.60.0110.00716.63
8.3.50.0100.01021.91
8.3.40.0120.00618.97
8.3.30.0110.00418.75
8.3.20.0040.00420.16
8.3.10.0080.00020.66
8.3.00.0040.00420.78
8.2.290.0070.00616.62
8.2.280.0110.00719.88
8.2.270.0040.01416.96
8.2.260.0040.00417.29
8.2.250.0130.00716.64
8.2.240.0040.00419.12
8.2.230.0050.00322.58
8.2.220.0060.00337.54
8.2.210.0000.00826.77
8.2.200.0070.00318.42
8.2.190.0150.00018.29
8.2.180.0070.00718.11
8.2.170.0040.01122.96
8.2.160.0140.00719.34
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00819.36
8.2.120.0040.00426.35
8.2.110.0060.00322.11
8.2.100.0030.00917.93
8.2.90.0030.00519.27
8.2.80.0030.00617.97
8.2.70.0060.00317.63
8.2.60.0040.00718.05
8.2.50.0060.00318.10
8.2.40.0050.00220.42
8.2.30.0040.00420.54
8.2.20.0080.00017.67
8.2.10.0040.00417.99
8.2.00.0000.00718.02
8.1.330.0100.00915.91
8.1.320.0080.01018.12
8.1.310.0070.00718.41
8.1.300.0070.00315.82
8.1.290.0060.00330.84
8.1.280.0140.00425.92
8.1.270.0030.00623.98
8.1.260.0000.00728.09
8.1.250.0070.00028.09
8.1.240.0100.00022.59
8.1.230.0110.00019.07
8.1.220.0040.00417.78
8.1.210.0080.00018.77
8.1.200.0030.00617.35
8.1.190.0050.00317.22
8.1.180.0000.00818.10
8.1.170.0040.00418.53
8.1.160.0040.00420.85
8.1.150.0050.00318.86
8.1.140.0040.00419.61
8.1.130.0000.00717.55
8.1.120.0040.00417.41
8.1.110.0040.00417.41
8.1.100.0000.00817.44
8.1.90.0070.00017.34
8.1.80.0030.00517.50
8.1.70.0030.00517.31
8.1.60.0030.00517.59
8.1.50.0040.00417.43
8.1.40.0060.00617.51
8.1.30.0050.00317.55
8.1.20.0050.00317.62
8.1.10.0080.00017.56
8.1.00.0000.00817.53
8.0.300.0000.00718.77
8.0.290.0000.00816.75
8.0.280.0030.00318.51
8.0.270.0050.00317.30
8.0.260.0000.00617.21
8.0.250.0030.00317.03
8.0.240.0060.00317.05
8.0.230.0000.00816.92
8.0.220.0000.00716.87
8.0.210.0040.00416.87
8.0.200.0030.00316.97
8.0.190.0040.00416.92
8.0.180.0000.00816.88
8.0.170.0030.00416.79
8.0.160.0040.00416.91
8.0.150.0040.00416.74
8.0.140.0040.00816.74
8.0.130.0030.00313.29
8.0.120.0030.00616.70
8.0.110.0000.00716.68
8.0.100.0040.00416.75
8.0.90.0030.00616.70
8.0.80.0090.00616.92
8.0.70.0000.00716.75
8.0.60.0040.00416.80
8.0.50.0040.00416.76
8.0.30.0070.01117.09
8.0.20.0090.01217.40
8.0.10.0070.00016.95
8.0.00.0080.01016.66
7.4.330.0000.00615.08
7.4.320.0030.00316.50
7.4.300.0030.00316.54
7.4.290.0000.00716.65
7.4.280.0060.00316.55
7.4.270.0060.00316.50
7.4.260.0000.00716.45
7.4.250.0000.00816.55
7.4.240.0030.00516.70
7.4.230.0000.00716.54
7.4.220.0190.00316.57
7.4.210.0060.00916.58
7.4.200.0000.00716.66
7.4.160.0090.00616.57
7.4.150.0100.00617.40
7.4.140.0120.00517.86
7.4.130.0140.00316.58
7.4.120.0070.00916.51
7.4.110.0070.01116.61
7.4.100.0060.01416.55
7.4.90.0130.00716.52
7.4.80.0080.00819.39
7.4.70.0060.01016.69
7.4.60.0120.00616.50
7.4.50.0090.00616.60
7.4.40.0060.01916.38
7.4.30.0090.00916.71
7.4.10.0120.00416.61
7.4.00.0040.01415.57
7.3.330.0030.00313.16
7.3.320.0000.00513.13
7.3.310.0000.00816.25
7.3.300.0060.00016.16
7.3.290.0120.00416.25
7.3.280.0080.00816.25
7.3.270.0090.00917.40
7.3.260.0130.01216.29
7.3.250.0120.01016.38
7.3.240.0080.00916.28
7.3.230.0070.01016.39
7.3.210.0080.00816.53
7.3.200.0130.00316.22
7.3.190.0130.00316.38
7.3.180.0070.01316.22
7.3.170.0090.00916.56
7.3.160.0070.01316.34
7.3.130.0090.00916.41
7.3.120.0090.01216.44
7.3.110.0140.00316.38
7.3.100.0070.00716.51
7.3.90.0040.01416.23
7.3.80.0040.00816.07
7.3.70.0060.00916.42
7.3.60.0000.01016.30
7.3.50.0090.00316.16
7.3.40.0060.00916.23
7.3.30.0090.00616.34
7.3.20.0040.01118.09
7.3.10.0060.00617.17
7.3.00.0090.00617.16
7.2.330.0120.00616.68
7.2.320.0100.01316.82
7.2.310.0090.01616.55
7.2.300.0040.01216.61
7.2.290.0090.00616.68
7.2.260.0150.00016.35
7.2.250.0090.01016.69
7.2.240.0090.00616.54
7.2.230.0070.00716.33
7.2.220.0060.01016.48
7.2.210.0030.01016.59
7.2.200.0030.01316.54
7.2.190.0060.00916.24
7.2.180.0030.01016.48
7.2.170.0060.00316.57
7.2.160.0060.00916.45
7.2.150.0100.00018.43
7.2.140.0060.00618.23
7.2.130.0080.00717.36
7.2.120.0050.00817.35
7.2.110.0040.00917.20
7.2.100.0080.00517.20
7.2.90.0060.00717.26
7.2.80.0050.00717.46
7.2.70.0060.00817.38
7.2.60.0070.00917.32
7.2.50.0060.00617.29
7.2.40.0080.00717.32
7.2.30.0100.00517.45
7.2.20.0060.00717.32
7.2.10.0050.00517.22
7.2.00.0090.00717.85
7.1.330.0000.01317.12
7.1.320.0150.00017.16
7.1.310.0030.01017.48
7.1.300.0040.00717.54
7.1.290.0090.00617.29
7.1.280.0070.00317.25
7.1.270.0040.00717.27
7.1.260.0090.00617.27
7.1.250.0090.00716.08
7.1.240.0100.00317.32
7.1.230.0100.00317.30
7.1.220.0000.01217.32
7.1.210.0070.01117.04
7.1.200.0060.00917.43
7.1.190.0060.00917.34
7.1.180.0040.00717.38
7.1.170.0060.00617.13
7.1.160.0060.00617.25
7.1.150.0100.00617.07
7.1.140.0070.00717.24
7.1.130.0130.00017.17
7.1.120.0060.00917.39
7.1.110.0100.00717.35
7.1.100.0050.00717.63
7.1.90.0030.00917.18
7.1.80.0140.00017.44
7.1.70.0020.00917.12
7.1.60.0060.01318.43
7.1.50.0080.00817.37
7.1.40.0000.01017.43
7.1.30.0060.00617.25
7.1.20.0000.01317.32
7.1.10.0070.00717.21
7.1.00.0050.04819.94
7.0.330.0000.01416.89
7.0.320.0080.00816.77
7.0.310.0060.00916.99
7.0.300.0090.00616.79
7.0.290.0070.00716.95
7.0.280.0000.01816.81
7.0.270.0070.00417.02
7.0.260.0000.01717.07
7.0.250.0030.01217.02
7.0.240.0030.01017.00
7.0.230.0030.01016.88
7.0.220.0000.01316.97
7.0.210.0040.01116.95
7.0.200.0040.00816.88
7.0.190.0070.00716.84
7.0.180.0100.00317.00
7.0.170.0060.00616.78
7.0.160.0070.00716.91
7.0.150.0100.00317.01
7.0.140.0070.00717.05
7.0.130.0150.00016.91
7.0.120.0030.01017.13
7.0.110.0120.00317.04
7.0.100.0000.01116.89
7.0.90.0060.00616.75
7.0.80.0070.00716.91
7.0.70.0080.00317.05
7.0.60.0220.03718.45
7.0.50.0100.04017.37
7.0.40.0160.03217.44
7.0.30.0220.03317.47
7.0.20.0130.03817.67
7.0.10.0100.03917.53
7.0.00.0220.03217.51
5.6.400.0120.00615.88
5.6.390.0040.00815.61
5.6.380.0150.00415.80
5.6.370.0060.00916.13
5.6.360.0040.01116.16
5.6.350.0030.00616.14
5.6.340.0060.01015.97
5.6.330.0080.00615.78
5.6.320.0100.00616.10
5.6.310.0030.00916.26
5.6.300.0130.00315.75
5.6.290.0030.01015.97
5.6.280.0030.04018.56
5.6.270.0080.00815.96
5.6.260.0110.00315.74
5.6.250.0030.00916.00
5.6.240.0060.00615.91
5.6.230.0060.00916.05
5.6.220.0060.00615.98
5.6.210.0060.04818.27
5.6.200.0100.03717.08
5.6.190.0120.03818.21
5.6.180.0160.03018.27
5.6.170.0120.03718.16
5.6.160.0080.03718.11
5.6.150.0080.03618.19
5.6.140.0130.03618.19
5.6.130.0160.03518.35
5.6.120.0160.03118.21
5.6.110.0460.04618.18
5.6.100.0450.04118.28
5.6.90.0460.03618.24
5.6.80.0390.03117.59
5.6.70.0100.03117.68
5.6.60.0180.03317.69
5.6.50.0340.04017.80
5.6.40.0340.03917.70
5.6.30.0400.03817.69
5.6.20.0360.03817.85
5.6.10.0230.04317.62
5.6.00.0130.04017.68
5.5.380.0070.00715.99
5.5.370.0090.00615.99
5.5.360.0000.01515.85
5.5.350.0090.03718.14
5.5.340.0000.05116.91
5.5.330.0130.03718.17
5.5.320.0150.03218.12
5.5.310.0090.03518.04
5.5.300.0170.04017.84
5.5.290.0230.03017.97
5.5.280.0110.03617.99
5.5.270.0430.03517.95
5.5.260.0350.04118.00
5.5.250.0380.03817.91
5.5.240.0370.04517.74
5.5.230.0220.04017.74
5.5.220.0270.03917.67
5.5.210.0150.04117.57
5.5.200.0340.03217.60
5.5.190.0400.04117.65
5.5.180.0270.04017.46
5.5.170.0030.01615.50
5.5.160.0200.04017.57
5.5.150.0120.04217.73
5.5.140.0120.03217.66
5.5.130.0160.02717.83
5.5.120.0140.03017.54
5.5.110.0140.02917.61
5.5.100.0130.03317.59
5.5.90.0200.03717.63
5.5.80.0200.03417.68
5.5.70.0150.03717.64
5.5.60.0150.02817.66
5.5.50.0140.02917.62
5.5.40.0230.02817.45
5.5.30.0110.03017.60
5.5.20.0080.03817.72
5.5.10.0070.03917.73
5.5.00.0160.03017.57

preferences:
33.48 ms | 403 KiB | 5 Q