3v4l.org

run code in 300+ PHP versions simultaneously
<?php $needle ='apple'; $haystack = explode(', ', 'mango, peach, toothpaste, apes'); foreach ($haystack as &$v) { $v = [levenshtein($needle, $v), $v]; } sort($haystack); foreach ($haystack as [$lev, $h]) { echo "$needle/$h: $lev\n"; }

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.5.00.0120.00920.08
8.4.150.0090.00416.81
8.4.140.0140.00617.59
8.4.130.0030.00518.04
8.4.120.0080.01123.95
8.4.110.0060.00319.04
8.4.100.0130.00717.83
8.4.90.0140.00720.19
8.4.80.0040.00418.70
8.4.70.0120.00720.62
8.4.60.0110.01120.35
8.4.50.0120.00818.72
8.4.40.0170.00317.71
8.4.30.0060.01218.73
8.4.20.0030.00618.01
8.4.10.0070.01019.40
8.3.280.0050.00616.18
8.3.270.0110.00816.67
8.3.260.0120.00716.56
8.3.250.0070.01018.84
8.3.240.0130.00716.77
8.3.230.0110.00816.50
8.3.220.0040.00420.61
8.3.210.0050.00516.49
8.3.200.0060.00316.49
8.3.190.0130.00616.89
8.3.180.0030.00418.79
8.3.170.0110.00717.00
8.3.160.0120.00616.39
8.3.150.0040.00416.73
8.3.140.0080.00016.56
8.3.130.0080.00016.58
8.3.120.0000.00818.78
8.3.110.0030.00520.94
8.3.100.0070.01018.43
8.3.90.0060.00316.62
8.3.80.0030.00618.18
8.3.70.0120.00616.63
8.3.60.0120.00616.64
8.3.50.0070.00716.45
8.3.40.0130.00721.65
8.3.30.0150.00622.96
8.3.20.0110.00723.65
8.3.10.0030.01623.71
8.3.00.0130.00622.96
8.2.290.0110.00817.05
8.2.280.0110.00818.18
8.2.270.0160.00316.44
8.2.260.0080.00016.94
8.2.250.0080.00018.20
8.2.240.0070.00318.74
8.2.230.0060.00322.58
8.2.220.0040.00424.06
8.2.210.0110.00726.77
8.2.200.0090.00016.50
8.2.190.0070.00718.41
8.2.180.0140.00316.63
8.2.170.0070.00722.96
8.2.160.0040.01522.96
8.2.150.0000.01622.96
8.2.140.0030.01022.96
8.2.130.0140.00022.96
8.2.120.0140.00722.96
8.2.110.0070.00722.96
8.2.100.0060.00922.96
8.2.90.0180.00422.96
8.2.80.0120.00322.96
8.2.70.0070.01422.96
8.2.60.0120.00322.96
8.2.50.0070.01422.96
8.2.40.0000.01522.96
8.2.30.0140.00722.96
8.2.20.0140.00422.96
8.2.10.0120.00622.96
8.2.00.0040.01122.96
8.1.330.0090.00916.13
8.1.320.0090.01118.22
8.1.310.0070.01118.68
8.1.300.0030.00716.04
8.1.290.0040.00818.88
8.1.280.0150.00625.92
8.1.270.0080.00623.91
8.1.260.0040.01823.85
8.1.250.0100.01023.75
8.1.240.0070.00722.96
8.1.230.0110.00422.96
8.1.220.0140.00022.96
8.1.210.0110.00422.96
8.1.200.0120.00922.96
8.1.190.0140.00722.96
8.1.180.0100.01022.96
8.1.170.0100.00722.96
8.1.160.0140.00322.96
8.1.150.0070.00722.96
8.1.140.0090.00622.96
8.1.130.0100.00722.96
8.1.120.0110.00722.96
8.1.110.0090.00622.96
8.1.100.0090.00622.96
8.1.90.0110.00322.96
8.1.80.0090.00622.96
8.1.70.0090.00622.96
8.1.60.0100.01022.96
8.1.50.0070.01122.96
8.1.40.0070.01122.96
8.1.30.0090.00622.96
8.1.20.0080.00822.96
8.1.10.0070.00722.96
8.1.00.0110.00422.96

preferences:
34.72 ms | 403 KiB | 5 Q