3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fruits = array ("mango", "apple", "pear", "peach"); $fruits = array_flip($fruits); echo ($fruits[mango]); ?>

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.0120.00318.53
8.3.50.0060.01221.19
8.3.40.0150.00018.85
8.3.30.0110.00418.70
8.3.20.0030.00520.13
8.3.10.0040.00421.94
8.3.00.0000.00823.66
8.2.180.0090.00916.74
8.2.170.0140.00022.96
8.2.160.0070.00720.58
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0040.00420.78
8.2.120.0000.00726.35
8.2.110.0040.00419.33
8.2.100.0040.00818.03
8.2.90.0060.00319.08
8.2.80.0060.00317.97
8.2.70.0040.00417.75
8.2.60.0000.00817.80
8.2.50.0060.00318.09
8.2.40.0000.00720.50
8.2.30.0000.00719.48
8.2.20.0000.00717.62
8.2.10.0040.00418.17
8.2.00.0000.00718.05
8.1.280.0110.01125.92
8.1.270.0080.00022.19
8.1.260.0040.00428.09
8.1.250.0030.00328.09
8.1.240.0090.00022.25
8.1.230.0070.00417.70
8.1.220.0060.00317.79
8.1.210.0030.00618.77
8.1.200.0030.00617.25
8.1.190.0030.00517.36
8.1.180.0030.00518.10
8.1.170.0070.00418.32
8.1.160.0070.00020.76
8.1.150.0070.00418.84
8.1.140.0000.00819.63
8.1.130.0050.00317.75
8.1.120.0000.00717.47
8.1.110.0030.00317.45
8.1.100.0000.00717.36
8.1.90.0050.00217.52
8.1.80.0070.00417.47
8.1.70.0030.00517.51
8.1.60.0050.00217.46
8.1.50.0000.00817.43
8.1.40.0040.00417.42
8.1.30.0050.00317.52
8.1.20.0040.00417.52
8.1.10.0000.00717.45
8.1.00.0040.00417.48
8.0.300.0080.00018.84
8.0.290.0040.00416.63
8.0.280.0000.00718.38
8.0.270.0030.00317.13
8.0.260.0030.00317.25
8.0.250.0040.00416.89
8.0.240.0030.00317.00
8.0.230.0040.00417.03
8.0.220.0070.00316.84
8.0.210.0000.00716.88
8.0.200.0000.00717.01
8.0.190.0090.00016.95
8.0.180.0040.00416.88
8.0.170.0000.00716.91
8.0.160.0030.00316.96
8.0.150.0000.00716.98
8.0.140.0030.00516.89
8.0.130.0000.00513.40
8.0.120.0050.00316.82
8.0.110.0040.00416.86
8.0.100.0070.00016.99
8.0.90.0000.00716.98
8.0.80.0090.00616.96
8.0.70.0070.00016.93
8.0.60.0040.00416.77
8.0.50.0000.00816.95
8.0.30.0090.00917.16
8.0.20.0100.00917.40
8.0.10.0040.00417.14
8.0.00.0110.00816.60
7.4.330.0050.00016.70
7.4.320.0070.00016.58
7.4.300.0030.00516.59
7.4.290.0070.00316.53
7.4.280.0030.00616.64
7.4.270.0030.00316.59
7.4.260.0000.00716.48
7.4.250.0050.00316.61
7.4.240.0000.00716.51
7.4.230.0040.00416.62
7.4.220.0160.00316.67
7.4.210.0100.00516.55
7.4.200.0080.00016.50
7.4.160.0120.00316.64
7.4.150.0090.00917.40
7.4.140.0110.00917.86
7.4.130.0060.01216.59
7.4.120.0120.00816.61
7.4.110.0130.00716.57
7.4.100.0090.00916.60
7.4.90.0080.00816.55
7.4.80.0070.01019.39
7.4.70.0140.00716.57
7.4.60.0060.00916.39
7.4.50.0060.00816.60
7.4.40.0110.00716.71
7.4.30.0070.01016.47
7.4.00.0070.01015.02
7.3.330.0000.00513.23
7.3.320.0000.00613.06
7.3.310.0070.00016.20
7.3.300.0070.00016.33
7.3.290.0000.00616.12
7.3.280.0100.00716.27
7.3.270.0120.00617.40
7.3.260.0150.00616.35
7.3.250.0100.00816.39
7.3.240.0110.00816.38
7.3.230.0090.01216.43
7.3.210.0090.00916.36
7.3.200.0080.00819.39
7.3.190.0070.01016.34
7.3.180.0090.00616.38
7.3.170.0160.00816.37
7.3.160.0040.01216.38
7.3.120.0060.01214.92
7.3.110.0090.00614.83
7.3.100.0070.00714.73
7.3.90.0090.00614.89
7.3.80.0000.01415.05
7.3.70.0000.01514.65
7.3.60.0000.01314.88
7.3.50.0040.01114.61
7.3.40.0090.00014.64
7.3.30.0060.00914.61
7.3.20.0030.00716.43
7.3.10.0050.00516.67
7.3.00.0060.00916.64
7.2.330.0060.01016.37
7.2.320.0110.00716.79
7.2.310.0090.01316.71
7.2.300.0030.01616.58
7.2.290.0110.00716.86
7.2.250.0100.00714.55
7.2.240.0030.01314.86
7.2.230.0030.00714.81
7.2.220.0070.00715.14
7.2.210.0040.01115.13
7.2.200.0080.00414.68
7.2.190.0040.01514.96
7.2.180.0070.01014.96
7.2.170.0040.01214.70
7.2.60.0110.00416.92
7.2.00.0060.00619.43
7.1.330.0090.00615.73
7.1.320.0030.00915.68
7.1.310.0070.00715.82
7.1.300.0040.01115.96
7.1.290.0070.00315.37
7.1.280.0100.00315.44
7.1.270.0100.00315.56
7.1.260.0120.00415.72
7.1.200.0060.00615.82
7.1.100.0000.01218.17
7.1.70.0070.00716.87
7.1.60.0070.01719.40
7.1.50.0090.01216.85
7.1.00.0070.07022.54
7.0.200.0750.00614.30
7.0.60.0300.07021.70
7.0.50.0070.08317.85
7.0.40.0100.06719.96
7.0.30.0130.04720.30
7.0.20.0200.05020.12
7.0.10.0100.08320.12
7.0.00.0100.08720.12
5.6.280.0070.03020.91
5.6.210.0200.06720.72
5.6.200.0030.04018.22
5.6.190.0100.07720.77
5.6.180.0230.04020.49
5.6.170.0270.07720.51
5.6.160.0070.03720.52
5.6.150.0070.08018.13
5.6.140.0100.07318.07
5.6.130.0100.03718.18
5.6.120.0070.09021.04
5.6.110.0130.07721.02
5.6.100.0030.04021.02
5.6.90.0100.08720.98
5.6.80.0070.08020.52
5.5.350.0330.06020.37
5.5.340.0100.08018.02
5.5.330.0100.08320.40
5.5.320.0270.04320.41
5.5.310.0370.06320.28
5.5.300.0100.05718.00
5.5.290.0070.08717.98
5.5.280.0130.05720.78
5.5.270.0170.04720.79
5.5.260.0100.06720.86
5.5.250.0070.03720.68
5.5.240.0170.03720.25

preferences:
39.97 ms | 401 KiB | 5 Q