3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sentence = strtolower('Cozy Qbert honks grawlix'); $usage = count_chars($sentence, 3); $alphabet = range('a', 'z'); var_export([ 'Sentence' => $sentence, 'Total Length' => strlen($sentence), 'Alphabetical Length' => preg_match_all('~[a-z]~', $sentence, $letters), 'Unused Letters' => array_diff($alphabet, $letters[0]), 'Duplicated Letters' => array_diff(array_count_values($letters[0]), [1]), ]);
based on X4kTQ

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.0.0alpha20.0030.01616.69
8.0.0alpha10.0100.00716.85
7.4.70.0040.01716.64
7.4.60.0080.01216.63
7.4.50.0080.01616.64
7.4.40.0150.00316.52
7.4.30.0100.00816.79
7.4.20.0060.00916.81
7.4.10.0060.01016.76
7.4.00.0170.00016.58
7.3.190.0090.00916.47
7.3.180.0110.00716.57
7.3.170.0040.02016.78
7.3.160.0070.01116.33
7.3.150.0080.01016.62
7.3.140.0540.00516.58
7.3.130.0160.00616.32
7.3.120.0120.00616.38
7.3.110.0040.01316.68
7.3.100.0040.01816.45
7.3.90.0140.00416.60
7.3.80.0090.01116.82
7.3.70.0130.01016.54
7.3.60.0120.01216.34
7.3.50.0130.01016.41
7.3.40.0110.00616.48
7.3.30.0140.00616.34
7.3.20.0030.01316.39
7.3.10.0090.00916.64
7.3.00.0140.00416.57
7.2.310.0310.01516.57
7.2.300.0240.00316.82
7.2.290.0110.00816.75
7.2.280.0060.00916.51
7.2.270.0100.00716.83
7.2.260.0030.01516.70
7.2.250.0070.01016.79
7.2.240.0090.00816.63
7.2.230.0170.00416.73
7.2.220.0080.00816.72
7.2.210.0070.01416.80
7.2.200.0140.01016.59
7.2.190.0080.01716.48
7.2.180.0130.01016.80
7.2.170.0110.00516.76
7.2.160.0070.01116.90
7.2.150.0100.00716.69
7.2.140.0090.00916.71
7.2.130.0060.01216.86
7.2.120.0130.00516.76
7.2.110.0040.01216.65
7.2.100.0150.00416.66
7.2.90.0030.01616.69
7.2.80.0110.00816.70
7.2.70.0040.01416.63
7.2.60.0070.01216.90
7.2.50.0050.01416.83
7.2.40.0060.01216.75
7.2.30.0110.00916.66
7.2.20.0000.01916.61
7.2.10.0120.00816.54
7.2.00.0090.00916.58