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"); echo $categoryMap["ARCH"]; echo $occupationMap["X"];

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.3.60.0070.00718.68
8.3.50.0120.00521.14
8.3.40.0030.01419.00
8.3.30.0070.00718.89
8.3.20.0050.00318.95
8.3.10.0070.00019.33
8.3.00.0050.00323.61
8.2.180.0070.01116.50
8.2.170.0100.01022.96
8.2.160.0000.01320.39
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0030.00626.16
8.2.120.0000.00721.00
8.2.110.0030.00620.52
8.2.100.0040.00818.03
8.2.90.0040.00419.39
8.2.80.0090.00017.97
8.2.70.0050.00317.59
8.2.60.0060.00317.93
8.2.50.0000.00818.07
8.2.40.0000.00818.16
8.2.30.0050.00319.91
8.2.20.0000.00717.65
8.2.10.0070.00017.68
8.2.00.0040.00417.79
8.1.280.0110.00425.92
8.1.270.0040.00423.99
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0060.00322.65
8.1.230.0070.00421.03
8.1.220.0040.00418.77
8.1.210.0050.00318.83
8.1.200.0030.00717.22
8.1.190.0070.00017.40
8.1.180.0030.00518.10
8.1.170.0060.00318.50
8.1.160.0020.00518.77
8.1.150.0040.00418.48
8.1.140.0000.00817.45
8.1.130.0040.00417.78
8.1.120.0000.00717.44
8.1.110.0040.00417.45
8.1.100.0000.00817.37
8.1.90.0000.00717.40
8.1.80.0040.00417.38
8.1.70.0030.00317.34
8.1.60.0000.00917.43
8.1.50.0000.00817.29
8.1.40.0030.00517.44
8.1.30.0050.00317.64
8.1.20.0000.00917.54
8.1.10.0060.00317.53
8.1.00.0030.00517.43
8.0.300.0000.01019.62
8.0.290.0000.00717.16
8.0.280.0030.00518.38
8.0.270.0060.00317.20
8.0.260.0000.00716.75
8.0.250.0040.00416.92
8.0.240.0050.00317.05
8.0.230.0050.00216.95
8.0.220.0070.00016.85
8.0.210.0070.00016.90
8.0.200.0000.00716.84
8.0.190.0000.00716.97
8.0.180.0000.00716.80
8.0.170.0000.00716.85
8.0.160.0000.00716.89
8.0.150.0040.00416.88
8.0.140.0040.00416.83
8.0.130.0030.00313.33
8.0.120.0000.00716.76
8.0.110.0000.00716.71
8.0.100.0040.00416.88
8.0.90.0000.00716.74
8.0.80.0090.00616.80
8.0.70.0040.00416.88
8.0.60.0070.00016.74
8.0.50.0000.00716.76
8.0.30.0110.00917.10
8.0.20.0100.00717.40
8.0.10.0080.00017.00
8.0.00.0120.00516.80
7.4.330.0050.00014.62
7.4.320.0030.00316.53
7.4.300.0000.00616.45
7.4.290.0030.00316.34
7.4.280.0030.00316.56
7.4.270.0030.00316.46
7.4.260.0050.00013.25
7.4.250.0000.00716.48
7.4.240.0060.00316.35
7.4.230.0030.00316.34
7.4.220.0070.01716.39
7.4.210.0080.01016.53
7.4.200.0000.00716.56
7.4.190.0070.00016.54
7.4.160.0090.00616.57
7.4.150.0060.01317.40
7.4.140.0140.00317.86
7.4.130.0090.00916.54
7.4.120.0110.00616.53
7.4.110.0080.01116.35
7.4.100.0030.01316.40
7.4.90.0120.00616.62
7.4.80.0120.00619.37
7.4.70.0130.00516.39
7.4.60.0080.01216.36
7.4.50.0060.00316.23
7.4.40.0040.00822.52
7.4.30.0070.01016.69
7.4.00.0000.01614.83
7.3.330.0050.00013.18
7.3.320.0020.00213.19
7.3.310.0000.00716.31
7.3.300.0070.00016.26
7.3.290.0130.00616.25
7.3.280.0090.00716.29
7.3.270.0060.01217.40
7.3.260.0120.00718.24
7.3.250.0120.00516.36
7.3.240.0080.01516.52
7.3.230.0150.00316.39
7.3.210.0120.00616.45
7.3.200.0130.00319.39
7.3.190.0090.00616.50
7.3.180.0100.00616.46
7.3.170.0040.01216.48
7.3.160.0100.00616.27
7.3.120.0120.00614.91
7.2.330.0040.01416.48
7.2.320.0060.01316.63
7.2.310.0070.01016.42
7.2.300.0110.01116.65
7.2.290.0170.00416.63
7.2.60.0060.00616.68
7.2.00.0030.00919.46
7.1.200.0000.01115.59
7.1.100.0070.00718.03
7.1.70.0000.00916.86
7.1.60.0140.01119.40
7.1.50.0070.01316.84
7.1.00.0000.06722.37
7.0.200.0030.00316.86
7.0.140.0000.07722.07
7.0.60.0100.06019.82
7.0.50.0070.04717.80
7.0.40.0070.06020.22
7.0.30.0270.08320.00
7.0.20.0170.04320.18
7.0.10.0230.05720.15
7.0.00.0000.04720.32
5.6.280.0070.06720.81
5.6.210.0030.04020.51
5.6.200.0030.05018.18
5.6.190.0030.06020.39
5.6.180.0370.07020.50
5.6.170.0400.06720.46
5.6.160.0100.04720.50
5.6.150.0100.06318.08
5.6.140.0030.04318.21
5.6.130.0000.04318.18
5.6.120.0070.06721.09
5.6.110.0070.04720.89
5.6.100.0070.08020.98
5.6.90.0070.08020.99
5.6.80.0030.04720.51
5.6.70.3870.04020.52
5.5.350.0300.07320.35
5.5.340.0170.04018.01
5.5.330.0100.08720.25
5.5.320.0030.07020.40
5.5.310.0270.07720.18
5.5.300.0070.04317.97
5.5.290.0130.05017.91
5.5.280.0070.08320.87
5.5.270.0070.07020.64
5.5.260.0100.08320.86
5.5.250.0130.06720.71
5.5.240.0100.06020.21
5.4.450.0230.04719.54
5.4.440.0330.07019.13
5.4.430.0330.06719.56
5.4.420.0270.05719.46
5.4.410.0330.07019.29
5.4.400.0200.04018.79
5.4.390.0270.06719.13
5.4.380.0270.07018.92
5.4.370.0270.06719.10
5.4.360.0330.06318.92
5.4.350.0230.08019.10
5.4.340.0270.07719.21
5.4.320.0300.06319.25
5.4.310.0270.05718.79
5.4.300.0130.04719.09
5.4.290.0270.05718.79
5.4.280.0270.07319.09
5.4.270.0270.07019.23
5.4.260.0270.03319.08
5.4.250.0330.06319.13
5.4.240.0230.06019.11
5.4.230.0230.04719.13
5.4.220.0170.08319.23
5.4.210.0230.07719.12
5.4.200.0300.06718.76
5.4.190.0230.06018.89
5.4.180.0300.07019.07
5.4.170.0200.04719.13
5.4.160.0200.07719.23
5.4.150.0270.07719.22
5.4.140.0130.07716.27
5.4.130.0330.05316.54
5.4.120.0300.07016.45
5.4.110.0300.04316.06
5.4.100.0270.06316.39
5.4.90.0270.04316.50
5.4.80.0330.05716.21
5.4.70.0230.07716.05
5.4.60.0230.06316.43
5.4.50.0200.04716.41
5.4.40.0200.06716.36
5.4.30.0230.05016.50
5.4.20.0100.05316.33
5.4.10.0230.05716.30
5.4.00.0200.07015.70
5.3.290.0300.06014.75
5.3.280.0100.05014.46
5.3.270.0170.05714.48
5.3.260.0300.07014.52
5.3.250.0270.06314.45
5.3.240.0400.06314.44
5.3.230.0270.03314.55
5.3.220.0200.06314.66
5.3.210.0430.05014.65
5.3.200.0230.06314.41
5.3.190.0270.06714.39
5.3.180.0230.04014.65
5.3.170.0230.06014.39
5.3.160.0270.07014.42
5.3.150.0230.06014.42
5.3.140.0300.04314.43
5.3.130.0230.06014.39
5.3.120.0300.04714.39
5.3.110.0230.04714.41
5.3.100.0270.07313.88
5.3.90.0100.06713.92
5.3.80.0400.05013.86
5.3.70.0270.07013.80
5.3.60.0230.07313.84
5.3.50.0270.04313.88
5.3.40.0330.06713.77
5.3.30.0230.07013.86
5.3.20.0270.06713.49
5.3.10.0230.06013.61
5.3.00.0270.07013.51
5.2.170.0170.05312.02
5.2.160.0230.05312.02
5.2.150.0170.06012.02
5.2.140.0200.05712.02
5.2.130.0270.05012.02
5.2.120.0330.04712.02
5.2.110.0200.05712.02
5.2.100.0200.05312.02
5.2.90.0230.03312.02
5.2.80.0230.05712.02
5.2.70.0230.05312.02
5.2.60.0100.06712.02
5.2.50.0170.03712.02
5.2.40.0230.05712.02
5.2.30.0170.06312.02
5.2.20.0170.06012.02
5.2.10.0170.06012.02
5.2.00.0170.04712.02
5.1.60.0030.03712.02
5.1.50.0100.04012.02
5.1.40.0200.03312.02
5.1.30.0130.05712.02
5.1.20.0170.06012.02
5.1.10.0170.05712.02
5.1.00.0070.03712.02
5.0.50.0070.02712.02
5.0.40.0030.04312.02
5.0.30.0230.04012.02
5.0.20.0070.04012.02
5.0.10.0030.04312.02
5.0.00.0000.07012.02
4.4.90.0030.02712.02
4.4.80.0070.03312.02
4.4.70.0070.02312.02
4.4.60.0030.02712.02
4.4.50.0070.03012.02
4.4.40.0000.03712.02
4.4.30.0070.03312.02
4.4.20.0030.03312.02
4.4.10.0030.03712.02
4.4.00.0030.05312.02
4.3.110.0070.03012.02
4.3.100.0230.03712.02
4.3.90.0030.03012.02
4.3.80.0000.05712.02
4.3.70.0000.03312.02
4.3.60.0030.03312.02
4.3.50.0030.03012.02
4.3.40.0000.05712.02
4.3.30.0000.03312.02
4.3.20.0030.03312.02
4.3.10.0000.03012.02
4.3.00.0000.02712.02

preferences:
40.49 ms | 401 KiB | 5 Q