3v4l.org

run code in 200+ 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;
based on 7Xelm

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)
7.4.00.0120.00614.76
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