3v4l.org

run code in 300+ PHP versions simultaneously
<?php $testStrings = [ "H3||0", "Hallo", "aloha", "h", "hallo", "hallå", "hel", "helicopter", "hellacious", "hello", "hello y'all", "hello yall", "helów", "hey hello", "hola", "hêllo", "mellow yellow", "try", ]; $needle = 'hello'; usort($testStrings, function($a, $b) use ($needle) { return levenshtein($needle, $a) <=> levenshtein($needle, $b); }); var_export($testStrings);

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.01218.43
8.3.50.0150.00416.33
8.3.40.0080.01218.45
8.3.30.0100.00319.28
8.3.20.0000.00824.18
8.3.10.0070.00324.66
8.3.00.0060.00326.16
8.2.180.0120.00925.92
8.2.170.0090.00622.96
8.2.160.0060.01022.96
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0000.00826.35
8.2.110.0030.00620.34
8.2.100.0080.00417.72
8.2.90.0080.00017.75
8.2.80.0000.00818.77
8.2.70.0030.00517.90
8.2.60.0050.00318.09
8.2.50.0080.00019.32
8.2.40.0000.00921.05
8.2.30.0000.00719.25
8.2.20.0060.00318.03
8.2.10.0060.00319.38
8.2.00.0070.00019.19
8.1.280.0180.00025.92
8.1.270.0080.00024.66
8.1.260.0000.00828.09
8.1.250.0080.00028.09
8.1.240.0090.00023.86
8.1.230.0120.00020.97
8.1.220.0000.00817.91
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0040.00417.35
8.1.180.0040.00418.97
8.1.170.0050.00318.49
8.1.160.0070.00019.03
8.1.150.0000.00718.96
8.1.140.0000.00719.00
8.1.130.0040.00417.41
8.1.120.0030.00717.48
8.1.110.0040.00417.35
8.1.100.0040.00417.51
8.1.90.0070.00017.51
8.1.80.0050.00317.43
8.1.70.0080.00017.45
8.1.60.0050.00317.64
8.1.50.0040.00417.50
8.1.40.0000.00817.51
8.1.30.0000.00817.64
8.1.20.0000.00817.70
8.1.10.0050.00317.52
8.1.00.0040.00417.46
8.0.300.0040.00418.77
8.0.290.0040.00416.88
8.0.280.0070.00018.49
8.0.270.0000.00816.89
8.0.260.0030.00316.92
8.0.250.0070.00017.02
8.0.240.0000.00816.88
8.0.230.0070.00016.91
8.0.220.0070.00316.97
8.0.210.0000.00816.84
8.0.200.0030.00316.91
8.0.190.0050.00316.94
8.0.180.0040.00416.92
8.0.170.0040.00416.77
8.0.160.0070.00016.93
8.0.150.0030.00516.75
8.0.140.0040.00416.85
8.0.130.0000.00513.30
8.0.120.0050.00316.75
8.0.110.0000.00716.73
8.0.100.0030.00616.95
8.0.90.0080.00016.77
8.0.80.0080.01016.92
8.0.70.0040.00416.88
8.0.60.0000.00816.76
8.0.50.0040.00416.89
8.0.30.0070.01117.23
8.0.20.0100.01017.06
8.0.10.0050.00316.81
8.0.00.0120.00616.77
7.4.330.0000.00415.55
7.4.320.0000.00616.59
7.4.300.0000.00616.62
7.4.290.0030.00316.48
7.4.280.0040.00416.55
7.4.270.0000.00716.53
7.4.260.0060.00013.39
7.4.250.0030.00616.48
7.4.240.0020.00616.53
7.4.230.0000.00816.68
7.4.220.0040.00316.63
7.4.210.0060.01216.55
7.4.200.0000.00716.60
7.4.130.0080.01316.48
7.4.120.0130.00916.55
7.4.110.0160.00816.35
7.4.100.0140.01016.47
7.4.90.0150.01116.42
7.4.80.0170.01117.85
7.4.70.0150.00816.54
7.4.60.0210.00316.44
7.4.50.0170.00916.37
7.4.40.0160.00816.43
7.4.30.0190.00516.47
7.4.20.0100.01616.17
7.4.10.0170.01116.60
7.4.00.0130.00916.52
7.3.330.0040.00416.34
7.3.320.0030.00313.08
7.3.310.0000.00616.20
7.3.300.0000.00716.32
7.3.290.0080.00716.31
7.3.280.0120.00316.16
7.3.260.0190.00716.23
7.3.240.0290.00816.58
7.3.230.0180.00616.29
7.3.220.0240.00916.30
7.3.210.0180.01216.40
7.3.200.0170.00716.46
7.3.190.0110.01416.48
7.3.180.0120.01416.48
7.3.170.0180.00716.33
7.3.160.0180.00616.18
7.3.150.0160.01116.50
7.3.140.0150.01016.20
7.3.130.0160.01116.42
7.3.120.0180.00816.23
7.3.110.0090.01516.46
7.3.100.0140.01016.41
7.3.90.0150.00916.40
7.3.80.0200.01116.26
7.3.70.0190.00616.35
7.3.60.0160.01016.44
7.3.50.0170.00716.31
7.3.40.0160.00916.32
7.3.30.0170.01016.39
7.3.20.0160.01016.31
7.3.10.0190.00616.30
7.3.00.0150.01016.42
7.2.340.0170.01716.75
7.2.330.0220.00616.63
7.2.320.0180.00816.61
7.2.310.0100.01416.63
7.2.300.0190.01016.55
7.2.290.0200.00616.59
7.2.280.0160.01016.51
7.2.270.0190.00916.61
7.2.260.0160.00816.69
7.2.250.0130.01416.55
7.2.240.0170.00816.53
7.2.230.0150.00916.43
7.2.220.0200.00816.60
7.2.210.0180.00816.53
7.2.200.0170.01016.47
7.2.190.0170.00716.58
7.2.180.0140.01016.46
7.2.170.0180.01316.60
7.2.160.0190.00716.59
7.2.150.0090.01716.42
7.2.140.0130.01316.56
7.2.130.0200.00516.65
7.2.120.0140.01216.65
7.2.110.0190.01016.68
7.2.100.0230.01116.55
7.2.90.0200.00816.68
7.2.80.0190.00716.45
7.2.70.0110.01616.71
7.2.60.0180.01016.47
7.2.50.0110.01516.67
7.2.40.0150.01216.49
7.2.30.0140.01616.63
7.2.20.0190.01016.44
7.2.10.0230.00816.55
7.2.00.0150.01016.50

preferences:
35.56 ms | 400 KiB | 5 Q