3v4l.org

run code in 300+ PHP versions simultaneously
<?php function most_repeated_count($word) { $letters = str_split($word); return max(array_count_values($letters)); } $content = 'O Romeo, Romeo, wherefore art thou Romeo?'; $words = explode(' ', $content); $word_counts = array_combine( $words, array_map('most_repeated_count', $words) ); arsort($word_counts); $max = key($word_counts); echo $max;

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.70.0110.01116.58
8.3.60.0090.00618.45
8.3.50.0090.00922.78
8.3.40.0030.01418.50
8.3.30.0120.00318.77
8.3.20.0140.00320.04
8.3.10.0080.00021.77
8.3.00.0080.00019.25
8.2.180.0150.00325.92
8.2.170.0140.00718.79
8.2.160.0070.00719.50
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0080.00026.16
8.2.120.0070.00020.89
8.2.110.0000.01022.05
8.2.100.0040.00817.78
8.2.90.0000.00817.84
8.2.80.0050.00319.16
8.2.70.0000.00817.50
8.2.60.0040.00417.50
8.2.50.0040.00417.55
8.2.40.0130.00020.27
8.2.30.0000.00819.17
8.2.20.0000.00717.60
8.2.10.0050.00218.16
8.2.00.0000.00818.19
8.1.280.0140.00725.92
8.1.270.0040.00422.19
8.1.260.0080.00026.35
8.1.250.0060.00828.09
8.1.240.0040.00422.50
8.1.230.0040.00720.95
8.1.220.0030.00517.78
8.1.210.0050.00318.77
8.1.200.0060.00317.23
8.1.190.0080.00317.13
8.1.180.0000.01018.10
8.1.170.0030.00618.50
8.1.160.0040.00423.91
8.1.150.0040.00418.84
8.1.140.0040.00419.53
8.1.130.0000.00717.64
8.1.120.0040.00417.42
8.1.110.0080.00017.45
8.1.100.0080.00017.46
8.1.90.0040.00417.29
8.1.80.0030.00317.38
8.1.70.0000.00717.41
8.1.60.0040.00417.52
8.1.50.0000.00917.45
8.1.40.0050.00517.45
8.1.30.0050.00317.53
8.1.20.0040.00417.54
8.1.10.0000.00817.55
8.1.00.0000.00717.50
8.0.300.0040.00420.16
8.0.290.0020.00516.75
8.0.280.0030.00318.45
8.0.270.0030.00316.89
8.0.260.0040.00418.44
8.0.250.0030.00316.91
8.0.240.0000.00816.89
8.0.230.0030.00316.84
8.0.220.0000.00716.79
8.0.210.0050.00216.79
8.0.200.0040.00416.98
8.0.190.0000.00816.78
8.0.180.0040.00416.79
8.0.170.0040.00416.76
8.0.160.0000.00816.84
8.0.150.0000.00716.87
8.0.140.0030.00316.77
8.0.130.0030.00313.19
8.0.120.0080.00016.74
8.0.110.0060.00316.84
8.0.100.0040.00416.82
8.0.90.0000.00816.87
8.0.80.0150.00016.79
8.0.70.0030.00516.95
8.0.60.0050.00316.86
8.0.50.0040.00416.88
8.0.30.0090.01217.00
8.0.20.0100.00817.40
8.0.10.0000.00717.04
8.0.00.0150.00416.77
7.4.330.0060.00015.08
7.4.320.0000.00616.59
7.4.300.0030.00316.53
7.4.290.0000.00716.34
7.4.280.0070.00016.39
7.4.270.0030.00316.47
7.4.260.0040.00416.52
7.4.250.0000.00816.34
7.4.240.0070.00016.55
7.4.230.0030.00316.59
7.4.220.0100.01416.54
7.4.210.0040.01216.55
7.4.200.0000.00716.35
7.4.160.0060.01016.25
7.4.150.0030.01317.40
7.4.140.0110.00917.86
7.4.130.0140.00916.49
7.4.120.0150.00516.29
7.4.110.0070.01016.25
7.4.100.0080.00816.46
7.4.90.0090.00916.54
7.4.80.0050.01119.39
7.4.70.0100.00616.44
7.4.60.0160.00616.41
7.4.50.0070.01116.41
7.4.40.0090.00616.35
7.4.30.0080.00816.38
7.4.00.0120.00614.76
7.3.330.0060.00013.25
7.3.320.0020.00213.11
7.3.310.0070.00016.30
7.3.300.0060.00016.16
7.3.290.0070.01216.28
7.3.280.0060.01116.22
7.3.270.0130.00917.40
7.3.260.0130.00716.34
7.3.250.0190.00216.26
7.3.240.0100.00716.53
7.3.230.0030.01416.39
7.3.210.0080.00816.20
7.3.200.0070.01116.59
7.3.190.0030.01316.24
7.3.180.0030.01416.43
7.3.170.0130.00416.39
7.3.160.0060.01316.28
7.2.330.0060.01216.64
7.2.320.0030.01416.69
7.2.310.0100.00616.68
7.2.300.0100.00716.64
7.2.290.0030.01416.61
7.2.60.0060.00616.93
7.2.50.0060.00616.67
7.1.200.0050.00515.68
7.1.100.0000.01318.20
7.1.70.0030.00716.86
7.1.60.0030.00717.06
7.1.50.0030.00716.98
7.1.40.0080.00816.75
7.1.30.0000.01016.46
7.1.20.0030.00716.47
7.1.10.0040.00416.69
7.1.00.0000.00716.64
7.0.200.0000.00716.79
7.0.190.0040.00716.70
7.0.180.0050.00316.15
7.0.170.0040.00416.07
7.0.160.0000.00716.25
7.0.150.0060.00616.01
7.0.140.0070.00316.22
7.0.130.0000.00716.59
7.0.120.0000.01016.71
7.0.110.0070.00016.40
7.0.100.0050.00216.60
7.0.90.0000.01816.28
7.0.80.0050.00316.57
7.0.70.0030.00616.41
7.0.60.0050.00516.08
7.0.50.0020.00516.33
7.0.40.0050.00214.70
7.0.30.0000.01014.80
7.0.20.0080.00014.57
7.0.10.0030.00614.53
7.0.00.0060.00314.56
5.6.300.0100.03520.79
5.6.290.0030.04820.91
5.6.280.0030.04120.92
5.6.270.0060.03820.93
5.6.260.0030.04320.91
5.6.250.0000.04420.86
5.6.240.0030.04020.82
5.6.230.0030.04420.84
5.6.220.0100.03720.94
5.6.210.0000.04520.64
5.6.200.0130.03721.04
5.6.190.0030.04321.03
5.6.180.0030.03821.06
5.6.170.0030.03920.78
5.6.160.0070.04121.06
5.6.150.0030.05520.83
5.6.140.0000.04520.83
5.6.130.0100.03621.00
5.6.120.0100.04920.99
5.6.110.0070.04920.73
5.6.100.0030.08821.02
5.6.90.0030.04320.82
5.6.80.0000.04520.31
5.6.70.0060.03820.34
5.6.60.0130.08920.31
5.6.50.0070.03720.16
5.6.40.0030.04020.39
5.6.30.0000.04220.29
5.6.20.0030.04420.29
5.6.10.0040.04620.41
5.6.00.0060.03520.18
5.5.380.0030.04117.67
5.5.370.0030.04117.68
5.5.360.0000.05917.46
5.5.350.0230.04917.41
5.5.340.0030.04317.86
5.5.330.0000.04418.09
5.5.320.0070.04018.02
5.5.310.0030.04218.03
5.5.300.0030.04518.12
5.5.290.0060.04818.09
5.5.280.0030.07218.03
5.5.270.0130.06718.11
5.5.260.0030.08518.13
5.5.250.0030.05417.55
5.5.240.0070.03617.42
5.5.230.0070.03717.47
5.5.220.0130.05017.39
5.5.210.0030.04617.47
5.5.200.0030.05517.43
5.5.190.0070.03617.41
5.5.180.0040.03917.44
5.5.160.0170.04717.05
5.5.150.0060.03517.19
5.5.140.0030.03617.05
5.5.130.0130.05317.43
5.5.120.0070.03717.07
5.5.110.0000.07217.38
5.5.100.0000.08417.32
5.5.90.0030.03817.31
5.5.80.0000.08616.96
5.5.70.0000.04517.34
5.5.60.0030.04116.99
5.5.50.0060.03917.10
5.5.40.0000.04817.25
5.5.30.0030.03717.10
5.5.20.0030.05817.36
5.5.10.0030.03817.10
5.5.00.0070.06617.09

preferences:
55.72 ms | 401 KiB | 5 Q