3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array = ['s', 'h', 'c', 'b', 'a', 'b', 'd', 'e', 'f', 'f', 'g']; arsort($array); $array = array_count_values($array); arsort($array, SORT_NUMERIC); var_export($array);

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.70.0070.01018.35
8.5.60.0120.00616.52
8.5.50.0080.00816.53
8.5.30.0090.00819.43
8.5.20.0100.00419.42
8.5.10.0090.00820.21
8.5.00.0150.00619.67
8.4.220.0130.00723.91
8.4.210.0140.00619.34
8.4.180.0120.00921.92
8.4.170.0150.00720.26
8.4.160.0140.00723.71
8.4.150.0080.00416.79
8.4.140.0110.01017.63
8.4.130.0140.00617.63
8.4.120.0100.00920.58
8.4.110.0120.00722.65
8.4.100.0130.00517.73
8.4.90.0100.01117.69
8.4.80.0120.00718.71
8.4.70.0140.00517.97
8.4.60.0120.00818.66
8.4.50.0030.00518.55
8.4.40.0130.00719.37
8.4.30.0080.00018.64
8.4.20.0030.00625.92
8.4.10.0090.00023.72
8.3.310.0130.00818.35
8.3.300.0140.00920.80
8.3.290.0140.00620.82
8.3.280.0090.01118.36
8.3.270.0100.01016.41
8.3.260.0160.00416.29
8.3.250.0030.00818.86
8.3.240.0120.00616.40
8.3.230.0060.00316.63
8.3.220.0050.00318.74
8.3.210.0110.00816.65
8.3.200.0040.00416.55
8.3.190.0080.00717.03
8.3.180.0130.00516.73
8.3.170.0050.00320.59
8.3.160.0120.00616.94
8.3.150.0060.01217.21
8.3.140.0150.00316.58
8.3.130.0150.00217.45
8.3.120.0110.00219.40
8.3.110.0090.00819.56
8.3.100.0130.00321.24
8.3.90.0100.00521.49
8.3.80.0140.00117.54
8.3.70.0150.00716.50
8.3.60.0180.00316.51
8.3.50.0120.00716.47
8.3.40.0140.00518.54
8.3.30.0120.00417.78
8.3.20.0120.00020.70
8.3.10.0080.00521.00
8.3.00.0110.00022.70
8.2.310.0120.00820.01
8.2.300.0120.00718.86
8.2.290.0100.00820.45
8.2.280.0100.00818.22
8.2.270.0170.00717.17
8.2.260.0040.00416.44
8.2.250.0060.00318.60
8.2.240.0090.00617.73
8.2.230.0120.00219.49
8.2.220.0080.00627.97
8.2.210.0110.00321.60
8.2.200.0070.00517.27
8.2.190.0120.00716.46
8.2.180.0150.00317.41
8.2.170.0140.00518.06
8.2.160.0120.00720.15
8.2.150.0090.00422.28
8.2.140.0050.00820.84
8.2.130.0110.00322.66
8.2.120.0110.00221.71
8.2.110.0150.00519.63
8.2.100.0120.00317.42
8.2.90.0130.00217.46
8.2.80.0110.00217.92
8.2.70.0080.00517.28
8.2.60.0060.00617.37
8.2.50.0080.00917.43
8.2.40.0090.00418.24
8.2.30.0080.00417.41
8.2.20.0080.00418.15
8.2.10.0080.00418.50
8.2.00.0150.00218.26
8.1.340.0120.00717.46
8.1.330.0130.00616.78
8.1.320.0150.00416.04
8.1.310.0100.00316.57
8.1.300.0090.00316.22
8.1.290.0080.00623.44
8.1.280.0110.00521.93
8.1.270.0080.00520.90
8.1.260.0080.00621.64
8.1.250.0110.00222.51
8.1.240.0110.00220.36
8.1.230.0100.00318.05
8.1.220.0070.00617.37
8.1.210.0100.00317.81
8.1.200.0060.00617.08
8.1.190.0060.00616.99
8.1.180.0100.00217.74
8.1.170.0110.00217.22
8.1.160.0060.00617.81
8.1.150.0090.00318.46
8.1.140.0080.00417.92
8.1.130.0070.00619.07
8.1.120.0170.00017.27
8.1.110.0190.00017.21
8.1.100.0120.00618.17
8.1.90.0150.00217.26
8.1.80.0110.00617.18
8.1.70.0050.01117.22
8.1.60.0150.00417.31
8.1.50.0130.00617.24
8.1.40.0080.01117.26
8.1.30.0110.00817.33
8.1.20.0140.00517.50
8.1.10.0140.00418.10
8.1.00.0120.00617.27
8.0.300.0080.00518.42
8.0.290.0080.00617.56
8.0.280.0090.00317.17
8.0.270.0080.00417.31
8.0.260.0130.00516.84
8.0.250.0180.00016.96
8.0.240.0130.00216.84
8.0.230.0110.00516.93
8.0.220.0120.00216.90
8.0.210.0090.00516.80
8.0.200.0110.00416.90
8.0.190.0140.00116.81
8.0.180.0110.00416.88
8.0.170.0150.00116.88
8.0.160.0100.00616.80
8.0.150.0120.00316.80
8.0.140.0140.00216.88
8.0.130.0150.00216.84
8.0.120.0070.00716.84
8.0.110.0110.00416.89
8.0.100.0120.00616.81
8.0.90.0130.00516.84
8.0.80.0100.00616.80
8.0.70.0120.00316.81
8.0.60.0070.00916.82
8.0.50.0100.00616.85
8.0.30.0150.00117.63
8.0.20.0100.00516.98
8.0.10.0100.00316.91

preferences:
81.55 ms | 1144 KiB | 5 Q