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 = current($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.60.0090.00918.18
8.3.50.0070.01019.92
8.3.40.0120.00318.67
8.3.30.0090.00618.62
8.3.20.0140.00320.34
8.3.10.0080.00021.76
8.3.00.0040.00419.01
8.2.180.0100.01016.38
8.2.170.0110.00722.96
8.2.160.0140.00019.31
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0050.00222.30
8.2.120.0040.00426.35
8.2.110.0070.00321.18
8.2.100.0070.00417.84
8.2.90.0060.00319.05
8.2.80.0040.00417.97
8.2.70.0050.00317.63
8.2.60.0070.00017.63
8.2.50.0040.00417.93
8.2.40.0030.00619.36
8.2.30.0000.00719.13
8.2.20.0000.00717.81
8.2.10.0040.00418.11
8.2.00.0030.00518.06
8.1.280.0140.00025.92
8.1.270.0080.00023.96
8.1.260.0050.00328.09
8.1.250.0060.00328.09
8.1.240.0060.00321.30
8.1.230.0070.00319.00
8.1.220.0000.00817.74
8.1.210.0030.00618.77
8.1.200.0000.00917.36
8.1.190.0000.00817.43
8.1.180.0030.00618.10
8.1.170.0040.00417.62
8.1.160.0040.00423.80
8.1.150.0040.00418.75
8.1.140.0040.00419.56
8.1.130.0000.00717.61
8.1.120.0040.00417.46
8.1.110.0000.00717.31
8.1.100.0040.00417.30
8.1.90.0000.00717.36
8.1.80.0040.00417.42
8.1.70.0070.00017.31
8.1.60.0040.00417.50
8.1.50.0030.00517.48
8.1.40.0040.00417.48
8.1.30.0040.00417.51
8.1.20.0000.00717.51
8.1.10.0040.00417.52
8.1.00.0040.00417.46
8.0.300.0000.00822.02
8.0.290.0040.00416.75
8.0.280.0000.00718.37
8.0.270.0070.00017.17
8.0.260.0000.00717.21
8.0.250.0030.00317.07
8.0.240.0000.00816.99
8.0.230.0070.00016.89
8.0.220.0070.00016.86
8.0.210.0040.00416.96
8.0.200.0000.00716.93
8.0.190.0040.00416.84
8.0.180.0070.00016.74
8.0.170.0050.00316.75
8.0.160.0000.00716.92
8.0.150.0000.00816.61
8.0.140.0030.00316.75
8.0.130.0000.00613.30
8.0.120.0040.00416.75
8.0.110.0070.00016.77
8.0.100.0070.00016.83
8.0.90.0040.00416.88
8.0.80.0100.00316.84
8.0.70.0000.00716.71
8.0.60.0070.00016.65
8.0.50.0040.00416.84
8.0.30.0070.00716.90
8.0.20.0140.00617.40
8.0.10.0000.00717.02
8.0.00.0090.00916.67
7.4.330.0020.00215.08
7.4.320.0000.00616.57
7.4.300.0030.00316.30
7.4.290.0030.00316.55
7.4.280.0070.00016.54
7.4.270.0030.00316.38
7.4.260.0060.00316.37
7.4.250.0000.00716.55
7.4.240.0020.00516.55
7.4.230.0070.00016.29
7.4.220.0100.00716.57
7.4.210.0040.01116.61
7.4.200.0000.00716.47
7.4.160.0110.00416.59
7.4.150.0000.01717.40
7.4.140.0090.01117.86
7.4.130.0150.00316.48
7.4.120.0060.01116.47
7.4.110.0130.00716.30
7.4.100.0090.00616.34
7.4.90.0030.01416.45
7.4.80.0080.00819.39
7.4.70.0140.00316.44
7.4.60.0150.00916.46
7.4.50.0090.00616.50
7.4.40.0110.00616.31
7.4.30.0030.01316.54
7.4.00.0030.01014.78
7.3.330.0050.00013.20
7.3.320.0000.00513.22
7.3.310.0030.00316.19
7.3.300.0060.00016.12
7.3.290.0090.00616.23
7.3.280.0070.01116.23
7.3.270.0030.01917.40
7.3.260.0130.00616.33
7.3.250.0080.01116.37
7.3.240.0080.00816.30
7.3.230.0060.01116.58
7.3.210.0110.00616.41
7.3.200.0060.01116.59
7.3.190.0100.00616.25
7.3.180.0100.01316.58
7.3.170.0110.00416.33
7.3.160.0150.00716.46
7.3.00.0030.01316.42
7.2.330.0080.01216.47
7.2.320.0060.01816.55
7.2.310.0090.00716.50
7.2.300.0110.00616.41
7.2.290.0130.00616.71
7.2.130.0100.00716.80
7.2.120.0090.00616.75
7.2.110.0040.00816.64
7.2.100.0000.01416.82
7.2.90.0070.00716.42
7.2.80.0070.00716.83
7.2.70.0000.01516.66
7.2.60.0050.00716.75
7.2.50.0000.01516.46
7.2.40.0070.01016.53
7.2.30.0040.00816.67
7.2.20.0120.00316.69
7.2.10.0070.00716.53
7.2.00.0040.00816.88
7.1.250.0030.00815.63
7.1.240.0060.00615.58
7.1.230.0090.00615.68
7.1.220.0070.01015.68
7.1.210.0120.00315.52
7.1.200.0020.00715.64
7.1.190.0030.00615.90
7.1.180.0070.00715.76
7.1.170.0030.00615.70
7.1.160.0030.01215.72
7.1.150.0030.01015.48
7.1.140.0060.00315.64
7.1.130.0040.00415.82
7.1.120.0030.00715.85
7.1.110.0090.00315.51
7.1.100.0030.01315.41
7.1.90.0000.01615.73
7.1.80.0060.00915.82
7.1.70.0040.00416.40
7.1.60.0150.00817.79
7.1.50.0030.01315.77
7.1.40.0060.00615.52
7.1.30.0090.00315.76
7.1.20.0110.00315.75
7.1.10.0100.00715.83
7.1.00.0050.04219.16
7.0.330.0100.00315.48
7.0.320.0060.00615.36
7.0.310.0100.00015.40
7.0.300.0060.00615.35
7.0.290.0070.00715.37
7.0.280.0070.00715.09
7.0.270.0090.00315.33
7.0.260.0030.00915.09
7.0.250.0100.00315.44
7.0.240.0090.00615.21
7.0.230.0070.00315.47
7.0.220.0060.00615.22
7.0.210.0030.00715.37
7.0.200.0310.00515.08
7.0.190.0030.01015.41
7.0.180.0040.00415.27
7.0.170.0030.00715.27
7.0.160.0070.00414.99
7.0.150.0070.00415.36
7.0.140.0070.00715.17
7.0.130.0070.01015.31
7.0.120.0100.00315.20
7.0.110.0000.01515.29
7.0.100.0060.00615.35
7.0.90.0140.00015.26
7.0.80.0150.03117.61
7.0.70.0120.03017.61
7.0.60.0100.03417.53
7.0.50.0120.03317.80
7.0.40.0060.03616.72
7.0.30.0120.03316.85
7.0.20.0130.03216.74
7.0.10.0130.03016.88
7.0.00.0150.02916.81
5.6.380.0040.01113.71
5.6.370.0090.00614.02
5.6.360.0030.00714.38
5.6.350.0000.00914.22
5.6.340.0040.01114.13
5.6.330.0060.00613.76
5.6.320.0000.01513.65
5.6.310.0030.01014.16
5.6.300.0030.00814.06
5.6.290.0040.00714.32
5.6.280.0030.04317.46
5.6.270.0100.00014.09
5.6.260.0000.01714.17
5.6.250.0100.00714.28
5.6.240.0110.00314.01
5.6.230.0090.03317.27
5.6.220.0110.03117.38
5.6.210.0110.03017.34
5.6.200.0060.03417.60
5.6.190.0170.02317.57
5.6.180.0100.02917.73
5.6.170.0100.03217.54
5.6.160.0050.03517.71
5.6.150.0070.03517.66
5.6.140.0130.03017.55
5.6.130.0080.03317.77
5.6.120.0100.03317.72
5.6.110.0100.03217.73
5.6.100.0080.03317.58
5.6.90.0070.03717.60
5.6.80.0060.03117.29
5.6.70.0080.03817.37
5.6.60.0100.03017.30
5.6.50.0050.03517.50
5.6.40.0080.03017.12
5.6.30.0030.03517.34
5.6.20.0070.03017.19
5.6.10.0150.03317.34
5.6.00.0120.02717.27
5.5.380.0030.00610.97
5.5.370.0080.03015.56
5.5.360.0090.03315.69
5.5.350.0150.02715.71
5.5.340.0130.02715.79
5.5.330.0080.03215.93
5.5.320.0070.03415.79
5.5.310.0050.03715.60
5.5.300.0080.03015.90
5.5.290.0110.03016.04
5.5.280.0050.03516.07
5.5.270.0070.03515.87
5.5.260.0020.03715.70
5.5.250.0050.03315.64
5.5.240.0070.02915.60
5.5.230.0080.03515.60
5.5.220.0070.03015.60
5.5.210.0120.02515.71
5.5.200.0030.03415.71
5.5.190.0090.03015.71
5.5.180.0130.02515.58
5.5.170.0040.00411.03
5.5.160.0100.02915.54
5.5.150.0080.03015.75
5.5.140.0100.02715.72
5.5.130.0020.03515.58
5.5.120.0130.03015.56
5.5.110.0100.02815.46
5.5.100.0060.03015.45
5.5.90.0050.03015.69
5.5.80.0120.02615.52
5.5.70.0050.03515.53
5.5.60.0060.02915.49
5.5.50.0070.02915.46
5.5.40.0030.03215.60
5.5.30.0070.03015.57
5.5.20.0080.03315.61
5.5.10.0100.02815.50
5.5.00.0070.03115.35

preferences:
58.42 ms | 400 KiB | 5 Q