3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sentence = 'Jumpy Qbert grawlix'; $usage = count_chars(strtolower($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), 'Duplicated Letters' => array_diff(array_count_values($letters), [1]), ]);
based on WPslB

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.0100.01316.82
8.0.0alpha10.0080.00816.71
7.4.70.0090.00916.85
7.4.60.0110.00816.63
7.4.50.0130.01316.64
7.4.40.0090.00916.69
7.4.30.0070.01116.87
7.4.20.0130.00716.73
7.4.10.0120.00616.64
7.4.00.0110.00916.73
7.3.190.0150.00916.61
7.3.180.0120.00816.48
7.3.170.0120.01216.75
7.3.160.0120.00816.73
7.3.150.0190.00716.78
7.3.140.0060.01216.75
7.3.130.0150.01016.55
7.3.120.0110.01116.56
7.3.110.0130.01116.23
7.3.100.0090.00916.42
7.3.90.0160.00316.52
7.3.80.0150.00416.37
7.3.70.0180.00316.54
7.3.60.0090.00916.39
7.3.50.0100.00916.48
7.3.40.0120.01216.45
7.3.30.0070.01516.50
7.3.20.0080.01616.53
7.3.10.0100.01316.53
7.3.00.0090.01216.40
7.2.310.0110.01416.70
7.2.300.0030.01316.53
7.2.290.0110.01116.63
7.2.280.0150.01116.62
7.2.270.0120.00816.53
7.2.260.0090.00916.50
7.2.250.0100.01716.88
7.2.240.0110.01416.52
7.2.230.0160.00716.52
7.2.220.0120.01016.71
7.2.210.0090.00916.44
7.2.200.0110.00816.76
7.2.190.0090.00916.70
7.2.180.0120.01316.54
7.2.170.0140.01016.93
7.2.160.0090.01516.62
7.2.150.0030.02016.53
7.2.140.0210.00316.52
7.2.130.0100.01616.69
7.2.120.0090.01416.64
7.2.110.0500.01216.50
7.2.100.0040.02216.66
7.2.90.0070.02216.66
7.2.80.0200.00816.54
7.2.70.0110.01716.57
7.2.60.0110.01916.53
7.2.50.0180.01016.64
7.2.40.0170.01016.65
7.2.30.0080.00516.70
7.2.20.0150.00916.61
7.2.10.0180.01016.55
7.2.00.0180.01016.76