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 similar_text($needle, $b) <=> similar_text($needle, $a); }); 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.70.0060.01216.75
8.3.60.0090.01218.43
8.3.50.0160.00616.50
8.3.40.0140.00718.57
8.3.30.0140.00019.25
8.3.20.0040.00424.18
8.3.10.0080.00024.66
8.3.00.0040.00426.16
8.2.190.0070.01116.58
8.2.180.0120.00625.92
8.2.170.0120.00322.96
8.2.160.0000.01522.96
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0080.00026.35
8.2.110.0090.00022.20
8.2.100.0060.00617.72
8.2.90.0040.00417.63
8.2.80.0080.00018.78
8.2.70.0030.00617.75
8.2.60.0050.00317.50
8.2.50.0090.00018.05
8.2.40.0040.00418.28
8.2.30.0030.00518.00
8.2.20.0070.00018.16
8.2.10.0040.00419.33
8.2.00.0000.00719.35
8.1.280.0100.00725.92
8.1.270.0060.00323.99
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0060.00318.90
8.1.230.0090.00317.77
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0040.00717.47
8.1.190.0000.00817.35
8.1.180.0060.00318.10
8.1.170.0000.00917.62
8.1.160.0050.00320.73
8.1.150.0000.00818.90
8.1.140.0040.00418.91
8.1.130.0030.00320.11
8.1.120.0030.00617.36
8.1.110.0030.00317.36
8.1.100.0000.00817.46
8.1.90.0030.00517.52
8.1.80.0000.00817.40
8.1.70.0050.00217.45
8.1.60.0090.00017.64
8.1.50.0040.00417.56
8.1.40.0080.00017.52
8.1.30.0050.00317.63
8.1.20.0040.00417.66
8.1.10.0030.00617.53
8.1.00.0060.00317.34
8.0.300.0050.00218.98
8.0.290.0030.00616.75
8.0.280.0050.00218.38
8.0.270.0040.00418.00
8.0.260.0030.00320.23
8.0.250.0070.00016.96
8.0.240.0000.00716.97
8.0.230.0070.00016.98
8.0.220.0030.00616.86
8.0.210.0030.00316.95
8.0.200.0030.00316.84
8.0.190.0000.00716.94
8.0.180.0040.00416.92
8.0.170.0030.00516.89
8.0.160.0000.00716.80
8.0.150.0070.00016.79
8.0.140.0040.00416.88
8.0.130.0030.00313.28
8.0.120.0040.00416.87
8.0.110.0070.00016.89
8.0.100.0040.00416.77
8.0.90.0040.00416.85
8.0.80.0050.01316.91
8.0.70.0000.00716.82
8.0.60.0050.00216.70
8.0.50.0050.00316.92
8.0.30.0070.01017.20
8.0.20.0200.00617.17
8.0.10.0040.00416.90
8.0.00.0090.00916.92
7.4.330.0040.00015.55
7.4.320.0030.00316.43
7.4.300.0030.00316.55
7.4.290.0000.00716.41
7.4.280.0030.00516.55
7.4.270.0030.00316.59
7.4.260.0030.00313.32
7.4.250.0000.00716.58
7.4.240.0020.00516.51
7.4.230.0000.00716.68
7.4.220.0040.00416.62
7.4.210.0070.01016.49
7.4.200.0030.00316.68
7.4.130.0080.01516.53
7.4.120.0080.02116.56
7.4.110.0130.00316.64
7.4.100.0100.00716.66
7.4.90.0060.01116.58
7.4.80.0150.00619.39
7.4.70.0100.00616.34
7.4.60.0080.00816.43
7.4.50.0000.01616.34
7.4.40.0130.00316.01
7.4.30.0100.00716.43
7.4.20.0100.00615.92
7.4.10.0130.00316.14
7.4.00.0120.00316.63
7.3.330.0000.00716.26
7.3.320.0000.00713.16
7.3.310.0000.00716.20
7.3.300.0070.00016.18
7.3.290.0070.00916.29
7.3.280.0120.00416.29
7.3.260.0070.01916.37
7.3.240.0080.00916.47
7.3.230.0070.01016.48
7.3.210.0110.00816.41
7.3.200.0100.00716.32
7.3.190.0070.01416.35
7.3.180.0120.00916.41
7.3.170.0030.01316.41
7.3.160.0100.00616.14
7.3.150.0130.00316.28
7.3.140.0100.00616.30
7.3.130.0030.01216.39
7.3.120.0090.00616.18
7.3.110.0090.00616.20
7.3.100.0090.00916.16
7.3.90.0070.01016.32
7.3.80.0060.01016.43
7.3.70.0030.01216.30
7.3.60.0130.00316.28
7.3.50.0080.00816.32
7.3.40.0120.00916.18
7.3.30.0100.00716.28
7.3.20.0180.00316.55
7.3.10.0080.00816.36
7.3.00.0070.01016.25
7.2.330.0150.00416.50
7.2.320.0090.00916.48
7.2.310.0110.00616.76
7.2.300.0190.00216.63
7.2.290.0060.01016.27
7.2.280.0110.00716.50
7.2.270.0070.01016.60
7.2.260.0060.00916.62
7.2.250.0120.00416.20
7.2.240.0060.01016.60
7.2.230.0100.00716.51
7.2.220.0060.01016.50
7.2.210.0060.01116.36
7.2.200.0030.01316.45
7.2.190.0030.01316.64
7.2.180.0080.00816.47
7.2.170.0040.01216.55
7.2.160.0070.01116.49
7.2.150.0250.02616.47
7.2.140.0090.01016.42
7.2.130.0090.00916.78
7.2.120.0090.00916.66
7.2.110.0150.00316.60
7.2.100.0100.00716.70
7.2.90.0070.01116.59
7.2.80.0030.01416.68
7.2.70.0110.00716.74
7.2.60.0120.00916.61
7.2.50.0170.00716.60
7.2.40.0070.01116.47
7.2.30.0030.01716.38
7.2.20.0090.00916.69
7.2.10.0130.00316.63
7.2.00.0040.01316.54

preferences:
53.83 ms | 401 KiB | 5 Q