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, fn($a, $b) => 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.4.140.0140.00717.47
8.4.130.0100.00217.71
8.4.120.0100.00820.70
8.4.110.0060.00718.93
8.4.100.0090.00717.84
8.4.90.0140.00720.60
8.4.80.0120.00917.94
8.4.70.0090.01117.79
8.4.60.0120.01018.46
8.4.50.0080.01318.72
8.4.40.0080.01117.73
8.4.30.0140.00718.55
8.4.20.0170.00319.05
8.4.10.0060.00320.61
8.3.270.0090.01016.56
8.3.260.0090.01016.90
8.3.250.0110.00818.93
8.3.240.0100.00916.67
8.3.230.0050.00316.81
8.3.220.0030.00418.81
8.3.210.0110.00418.59
8.3.200.0060.00316.90
8.3.190.0090.01216.73
8.3.180.0100.00816.48
8.3.170.0120.00618.82
8.3.160.0120.00618.48
8.3.150.0180.00017.10
8.3.140.0080.00016.43
8.3.130.0060.00318.50
8.3.120.0130.00618.87
8.3.110.0000.00816.88
8.3.100.0090.00624.06
8.3.90.0030.00526.77
8.3.80.0080.00316.88
8.3.70.0120.00618.43
8.3.60.0190.01022.05
8.3.50.0230.00724.49
8.3.40.0110.01022.29
8.3.30.0110.00922.56
8.3.20.0160.00225.05
8.3.10.0060.01125.29
8.3.00.0110.00726.04
8.2.290.0100.00718.80
8.2.280.0050.00418.63
8.2.270.0110.00718.82
8.2.260.0160.00316.92
8.2.250.0000.00816.69
8.2.240.0090.00018.95
8.2.230.0040.00420.94
8.2.220.0090.00037.54
8.2.210.0040.00426.77
8.2.200.0090.00016.50
8.2.190.0120.00616.75
8.2.180.0120.00825.92
8.2.170.0150.00622.44
8.2.160.0090.00724.44
8.2.150.0090.00525.79
8.2.140.0110.00325.29
8.2.130.0120.00226.04
8.2.120.0110.00226.14
8.2.110.0130.00322.56
8.2.100.0100.00721.83
8.2.90.0080.00723.23
8.2.80.0040.01221.95
8.2.70.0130.00121.71
8.2.60.0080.00521.71
8.2.50.0100.00521.98
8.2.40.0070.00922.62
8.2.30.0120.00221.99
8.2.20.0100.00422.05
8.2.10.0080.00722.62
8.2.00.0130.00322.56
8.1.330.0140.00621.95
8.1.320.0120.00916.19
8.1.310.0070.01118.26
8.1.300.0000.00920.03
8.1.290.0030.00718.88
8.1.280.0130.00625.92
8.1.270.0110.00524.96
8.1.260.0080.00927.00
8.1.250.0110.00527.00
8.1.240.0070.00924.02
8.1.230.0110.00523.44
8.1.220.0090.00521.83
8.1.210.0080.00722.38
8.1.200.0050.00921.63
8.1.190.0110.00421.64
8.1.180.0100.00422.01
8.1.170.0120.00321.77
8.1.160.0050.00823.30
8.1.150.0050.00822.43
8.1.140.0080.00622.44
8.1.130.0070.00723.03
8.1.120.0050.00921.73
8.1.110.0110.00321.65
8.1.100.0100.00421.71
8.1.90.0090.00421.64
8.1.80.0050.00721.70
8.1.70.0090.00621.70
8.1.60.0100.00321.75
8.1.50.0100.00921.67
8.1.40.0100.01021.72
8.1.30.0120.01021.74
8.1.20.0130.00621.81
8.1.10.0100.00621.67
8.1.00.0190.00221.69
8.0.300.0160.00822.89
8.0.290.0180.00421.27
8.0.280.0140.00922.16
8.0.270.0120.00621.99
8.0.260.0140.00523.04
8.0.250.0180.00221.41
8.0.240.0150.00321.47
8.0.230.0080.01121.47
8.0.220.0160.00821.45
8.0.210.0140.00621.37
8.0.200.0160.00621.44
8.0.190.0190.00921.46
8.0.180.0200.00421.43
8.0.170.0170.00321.45
8.0.160.0200.00321.38
8.0.150.0130.00721.36
8.0.140.0160.00521.41
8.0.130.0160.00319.62
8.0.120.0150.00521.36
8.0.110.0120.00821.33
8.0.100.0150.00821.45
8.0.90.0140.00821.35
8.0.80.0140.01019.86
8.0.70.0170.00421.36
8.0.60.0130.00521.38
8.0.50.0150.00421.33
8.0.30.0170.00821.37
8.0.20.0190.01021.50
8.0.10.0150.01121.52
8.0.00.0190.01021.46
7.4.330.0180.00020.73
7.4.320.0130.00621.17
7.4.300.0180.00021.19
7.4.290.0170.00321.23
7.4.280.0160.00421.28
7.4.270.0110.00821.26
7.4.260.0160.00319.60
7.4.250.0170.00721.20
7.4.240.0110.00419.68
7.4.230.0150.00521.31
7.4.220.0130.00319.71
7.4.210.0160.00518.88
7.4.200.0090.00921.16
7.4.190.0270.01025.92
7.4.180.0250.01125.92
7.4.160.0180.00925.92
7.4.150.0290.00825.92
7.4.140.0250.01425.92
7.4.130.0140.01219.68
7.4.120.0150.01321.25
7.4.110.0140.00921.20
7.4.100.0220.00621.21
7.4.90.0160.01121.29
7.4.80.0130.01022.66
7.4.70.0230.00221.19
7.4.60.0190.00621.12
7.4.50.0120.01420.98
7.4.40.0190.00521.03
7.4.30.0200.00921.12
7.4.20.0190.00821.00
7.4.10.0160.00521.04
7.4.00.0160.00621.29
7.3.330.0120.00721.04
7.3.320.0140.01019.45
7.3.310.0150.00421.04
7.3.300.0140.00821.05
7.3.290.0160.00418.60
7.3.280.0250.00621.10
7.3.270.0290.01125.92
7.3.260.0150.01521.05
7.3.250.0200.01025.92
7.3.240.0120.00818.24
7.3.230.0210.00421.15
7.3.220.0270.00425.92
7.3.210.0170.00921.04
7.3.200.0210.00621.13
7.3.190.0160.00921.12
7.3.180.0170.00821.04
7.3.170.0200.00321.12
7.3.160.0190.00720.94
7.3.150.0170.01221.00
7.3.140.0200.00621.11
7.3.130.0190.00621.01
7.3.120.0220.00321.05
7.3.110.0130.01021.14
7.3.100.0180.00621.05
7.3.90.0180.00721.01
7.3.80.0170.00821.02
7.3.70.0210.00621.02
7.3.60.0170.00921.00
7.3.50.0210.00521.04
7.3.40.0210.00521.08
7.3.30.0200.00621.07
7.3.20.0240.00521.12
7.3.10.0210.00521.02
7.3.00.0170.00921.08
7.2.340.0260.00825.92
7.2.330.0120.01221.11
7.2.320.0170.01021.25
7.2.310.0110.01221.11
7.2.300.0200.00721.11
7.2.290.0140.01321.08
7.2.280.0200.00921.19
7.2.270.0160.00821.05
7.2.260.0180.00521.03
7.2.250.0170.00621.08
7.2.240.0130.00921.15
7.2.230.0170.00621.04
7.2.220.0160.01021.12
7.2.210.0210.00521.16
7.2.200.0130.01421.05
7.2.190.0190.00821.04
7.2.180.0180.00921.17
7.2.170.0160.01021.10
7.2.160.0160.00920.99
7.2.150.0210.00821.17
7.2.140.0180.01021.05
7.2.130.0200.00821.25
7.2.120.0140.01421.04
7.2.110.0230.00621.15
7.2.100.0240.00521.04
7.2.90.0250.01221.12
7.2.80.0180.01021.13
7.2.70.0180.00721.18
7.2.60.0200.00821.07
7.2.50.0230.00621.05
7.2.40.0140.01121.07
7.2.30.0180.00821.17
7.2.20.0150.00821.07
7.2.10.0230.00521.16
7.2.00.0180.01021.17

preferences:
30.13 ms | 403 KiB | 5 Q