3v4l.org

run code in 300+ PHP versions simultaneously
<?php $abbreviations = array("AL","AK","AZ","AR",8); $states = array("Alabama","Alaska","Arizona","Arkansas"); $stateMap = array_combine($abbreviations,$states); print_r($stateMap);

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.0140.00316.63
8.3.50.0100.00917.43
8.3.40.0130.00718.84
8.3.30.0100.01018.54
8.3.20.0050.00318.52
8.3.10.0040.00420.65
8.3.00.0050.00317.59
8.2.180.0040.01116.88
8.2.170.0070.00722.96
8.2.160.0090.00622.25
8.2.150.0120.00624.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0070.00019.64
8.2.110.0030.00621.00
8.2.100.0000.01117.91
8.2.90.0070.00019.08
8.2.80.0080.00018.04
8.2.70.0060.00317.50
8.2.60.0050.00317.93
8.2.50.0040.00418.07
8.2.40.0020.00518.22
8.2.30.0000.00717.99
8.2.20.0000.00717.70
8.2.10.0000.00717.72
8.2.00.0000.00817.60
8.1.280.0110.00425.92
8.1.270.0040.00423.99
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00320.74
8.1.230.0080.00420.82
8.1.220.0040.00418.77
8.1.210.0080.00018.97
8.1.200.0070.00317.35
8.1.190.0030.00617.39
8.1.180.0110.00018.10
8.1.170.0050.00218.84
8.1.160.0050.00218.81
8.1.150.0070.00018.60
8.1.140.0040.00417.43
8.1.130.0000.00717.77
8.1.120.0070.00017.38
8.1.110.0000.00917.30
8.1.100.0000.00817.26
8.1.90.0000.00817.34
8.1.80.0040.00417.35
8.1.70.0030.00317.35
8.1.60.0000.00717.50
8.1.50.0040.00417.53
8.1.40.0000.00817.41
8.1.30.0040.00417.62
8.1.20.0030.00517.51
8.1.10.0080.00017.61
8.1.00.0000.00717.38
8.0.300.0080.00019.96
8.0.290.0040.00416.75
8.0.280.0070.00018.38
8.0.270.0000.00717.24
8.0.260.0030.00316.87
8.0.250.0070.00016.88
8.0.240.0000.00816.92
8.0.230.0050.00216.95
8.0.220.0000.00716.93
8.0.210.0040.00416.90
8.0.200.0030.00316.90
8.0.190.0040.00416.96
8.0.180.0040.00416.79
8.0.170.0030.00516.77
8.0.160.0040.00416.79
8.0.150.0040.00416.85
8.0.140.0040.00416.72
8.0.130.0050.00013.29
8.0.120.0030.00616.88
8.0.110.0000.00716.73
8.0.100.0020.00516.92
8.0.90.0040.00416.71
8.0.80.0150.00316.93
8.0.70.0030.00616.92
8.0.60.0040.00416.66
8.0.50.0000.00716.68
8.0.30.0100.00917.00
8.0.20.0110.00717.07
8.0.10.0040.00416.92
8.0.00.0030.01716.68
7.4.330.0050.00014.59
7.4.320.0040.00416.47
7.4.300.0000.00616.53
7.4.290.0030.00316.50
7.4.280.0030.00616.53
7.4.270.0070.00016.41
7.4.260.0000.00613.25
7.4.250.0070.00016.46
7.4.240.0080.00016.54
7.4.230.0000.00716.45
7.4.220.0170.01016.46
7.4.210.0060.01116.51
7.4.200.0030.00316.39
7.4.190.0000.00716.29
7.4.160.0110.00416.38
7.4.150.0000.01717.07
7.4.140.0080.00817.17
7.4.130.0060.01016.48
7.4.120.0080.00816.40
7.4.110.0170.00416.52
7.4.100.0150.00416.54
7.4.90.0070.01416.44
7.4.80.0090.01318.80
7.4.70.0060.01216.35
7.4.60.0030.01316.43
7.4.50.0050.00016.55
7.4.40.0030.01322.27
7.4.30.0100.00616.57
7.4.00.0000.01014.58
7.3.330.0060.00013.13
7.3.320.0060.00013.11
7.3.310.0040.00416.27
7.3.300.0030.00316.18
7.3.290.0090.00616.18
7.3.280.0080.00816.20
7.3.270.0100.00717.07
7.3.260.0110.00918.24
7.3.250.0100.01116.20
7.3.240.0130.00316.19
7.3.230.0130.00416.48
7.3.210.0060.01116.17
7.3.200.0090.01019.39
7.3.190.0110.00516.45
7.3.180.0080.00816.35
7.3.170.0120.00416.27
7.3.160.0060.00916.28
7.3.120.0100.00714.93
7.2.330.0140.00316.51
7.2.320.0160.00616.38
7.2.310.0120.01216.48
7.2.300.0070.01116.26
7.2.290.0060.01016.32
7.2.60.0030.00916.79
7.2.00.0080.00619.41
7.1.200.0030.00615.79
7.1.100.0040.00817.86
7.1.70.0000.01017.05
7.1.60.0150.00919.40
7.1.50.0070.01616.58
7.1.00.0000.06322.48
7.0.200.0000.00716.69
7.0.140.0030.06722.09
7.0.60.0130.07019.93
7.0.50.0130.08017.95
7.0.40.0400.04020.21
7.0.30.0300.08320.13
7.0.20.0200.04720.12
7.0.10.0270.05320.09
7.0.00.0230.04320.26
5.6.280.0000.07721.08
5.6.210.0030.08320.50
5.6.200.0070.08018.18
5.6.190.0300.04020.45
5.6.180.0230.08720.63
5.6.170.0230.08020.29
5.6.160.0330.07320.45
5.6.150.0270.08020.33
5.6.140.0400.07320.40
5.6.130.0330.05720.32
5.6.120.0370.05320.13
5.6.110.0200.05020.13
5.6.100.0130.06320.42
5.6.90.0270.08020.11
5.6.80.0230.07019.57
5.6.70.0130.05019.56
5.6.60.0230.08019.85
5.6.50.0270.07319.51
5.6.40.0430.06019.77
5.6.30.0200.06019.80
5.6.20.0270.05719.69
5.6.10.0230.06719.82
5.6.00.0270.07319.69
5.5.350.0270.02720.32
5.5.340.0100.04717.98
5.5.330.0200.05020.43
5.5.320.0500.06320.22
5.5.310.0300.05320.07
5.5.300.0330.08319.90
5.5.290.0300.04320.21
5.5.280.0330.06720.18
5.5.270.0200.08320.19
5.5.260.0300.07020.15
5.5.250.0270.06719.98
5.5.240.0400.06719.29
5.5.230.0130.05019.36
5.5.220.0270.05019.61
5.5.210.0170.05019.59
5.5.200.0230.05019.48
5.5.190.0170.04719.36
5.5.180.0300.04019.56
5.5.160.0230.07719.53
5.5.150.0230.05019.61
5.5.140.0230.05019.46
5.5.130.0300.05319.31
5.5.120.0270.07719.49
5.5.110.0230.08019.54
5.5.100.0270.07019.43
5.5.90.0300.06019.33
5.5.80.0270.07319.32
5.5.70.0270.07319.17
5.5.60.0170.08319.38
5.5.50.0230.03319.22
5.5.40.0270.05319.42
5.5.30.0200.07319.55
5.5.20.0230.07719.37
5.5.10.0170.05719.39
5.5.00.0300.06019.24
5.4.450.0300.08319.45
5.4.440.0230.08019.47
5.4.430.0230.07019.13
5.4.420.0230.05019.13
5.4.410.0300.06719.31
5.4.400.0230.07318.96
5.4.390.0170.04018.92
5.4.380.0300.07719.14
5.4.370.0170.05319.18
5.4.360.0330.06719.18
5.4.350.0400.03319.18
5.4.340.0270.07019.15
5.4.320.0300.06319.11
5.4.310.0300.06318.92
5.4.300.0270.06319.11
5.4.290.0270.03719.15
5.4.280.0130.06719.11
5.4.270.0270.06019.14
5.4.260.0270.06318.92
5.4.250.0370.06719.07
5.4.240.0230.06319.07
5.4.230.0230.07018.79
5.4.220.0300.06318.78
5.4.210.0200.05018.79
5.4.200.0230.07019.17
5.4.190.0430.06018.78
5.4.180.0300.05319.16
5.4.170.0200.07719.07
5.4.160.0270.07018.89
5.4.150.0300.06318.98
5.4.140.0230.07316.25
5.4.130.0130.04316.16
5.4.120.0300.06316.26
5.4.110.0170.03716.15
5.4.100.0100.04016.41
5.4.90.0200.03016.29
5.4.80.0170.03016.29
5.4.70.0130.04016.22
5.4.60.0130.03316.31
5.4.50.0130.03316.24
5.4.40.0170.03716.26
5.4.30.0100.04016.28
5.4.20.0200.02716.26
5.4.10.0170.03716.21
5.4.00.0100.03715.82
5.3.290.0270.07314.63
5.3.280.0330.06314.52
5.3.270.0070.05314.53
5.3.260.0300.04714.55
5.3.250.0230.07714.43
5.3.240.0170.05314.50
5.3.230.0170.05314.53
5.3.220.0100.05014.38
5.3.210.0230.08014.35
5.3.200.0230.03714.38
5.3.190.0130.04014.51
5.3.180.0200.03314.49
5.3.170.0230.02714.46
5.3.160.0170.03314.50
5.3.150.0100.04314.50
5.3.140.0100.04014.49
5.3.130.0130.05014.48
5.3.120.0200.03714.47
5.3.110.0200.03314.47
5.3.100.0130.03713.96
5.3.90.0200.04713.84
5.3.80.0230.03013.81
5.3.70.0100.04013.95
5.3.60.0130.03713.90
5.3.50.0170.03313.86
5.3.40.0230.02713.78
5.3.30.0230.03013.83
5.3.20.0170.03013.78
5.3.10.0130.03313.61
5.3.00.0130.04013.45
5.2.170.0100.03013.19
5.2.160.0100.03013.19
5.2.150.0100.03013.19
5.2.140.0170.04313.19
5.2.130.0030.03313.19
5.2.120.0070.03013.19
5.2.110.0070.05013.19
5.2.100.0100.03013.19
5.2.90.0130.03013.19
5.2.80.0100.03013.19
5.2.70.0100.02713.19
5.2.60.0130.02713.19
5.2.50.0100.03313.19
5.2.40.0100.02313.19
5.2.30.0100.02713.19
5.2.20.0030.03313.19
5.2.10.0100.03013.19
5.2.00.0170.02013.19
5.1.60.0100.02313.19
5.1.50.0130.02313.19
5.1.40.0200.01713.19
5.1.30.0130.02013.19
5.1.20.0130.02013.19
5.1.10.0070.02713.19
5.1.00.0100.02713.19
5.0.50.0070.01713.19
5.0.40.0030.02013.19
5.0.30.0070.03013.19
5.0.20.0030.02313.19
5.0.10.0100.01713.19
5.0.00.0030.03013.19
4.4.90.0030.01313.19
4.4.80.0000.02313.19
4.4.70.0030.01713.19
4.4.60.0100.01013.19
4.4.50.0070.01313.19
4.4.40.0030.02713.19
4.4.30.0030.01713.19
4.4.20.0030.01713.19
4.4.10.0030.01713.19
4.4.00.0030.02313.19
4.3.110.0030.01313.19
4.3.100.0070.01313.19
4.3.90.0070.01013.19
4.3.80.0030.04313.19
4.3.70.0070.02013.19
4.3.60.0100.01313.19
4.3.50.0270.01713.19
4.3.40.0100.05013.19
4.3.30.0070.03013.19
4.3.20.0000.04313.19
4.3.10.0070.02313.19
4.3.00.0030.03713.19

preferences:
45.09 ms | 401 KiB | 5 Q