3v4l.org

run code in 300+ PHP versions simultaneously
<?php $strings[] = 'sixty yards out'; $strings[] = 'seventy five yards out'; $strings[] = 'one hundred fifty yards out'; $inputString = 'seventy two yards out'; $p = 0; $k = null; foreach ($strings as $key => $string) { similar_text($inputString, $string, $percent); if ($percent > $p) { $p = $percent; $k = $key; } } echo $k ? $strings[$k] : "";

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.0160.00016.50
8.3.60.0080.00818.43
8.3.50.0100.01022.90
8.3.40.0090.00618.92
8.3.30.0070.01518.54
8.3.20.0000.00720.37
8.3.10.0070.00023.65
8.3.00.0050.00319.79
8.2.190.0090.00616.63
8.2.180.0170.00325.92
8.2.170.0130.00719.13
8.2.160.0070.01321.19
8.2.150.0000.00724.18
8.2.140.0100.00324.66
8.2.130.0080.00026.16
8.2.120.0030.00619.45
8.2.110.0080.00320.96
8.2.100.0060.00618.28
8.2.90.0030.00619.27
8.2.80.0040.00418.03
8.2.70.0000.00817.75
8.2.60.0040.00417.63
8.2.50.0030.00517.63
8.2.40.0040.00417.63
8.2.30.0040.00421.19
8.2.20.0040.00417.68
8.2.10.0000.00718.17
8.2.00.0040.00418.02
8.1.280.0120.00625.92
8.1.270.0050.00323.91
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0060.00319.26
8.1.230.0070.00417.77
8.1.220.0090.00017.77
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0000.00817.10
8.1.180.0000.00818.10
8.1.170.0000.00717.62
8.1.160.0070.00022.10
8.1.150.0020.00518.88
8.1.140.0000.00719.57
8.1.130.0030.00617.68
8.1.120.0040.00417.35
8.1.110.0040.00417.44
8.1.100.0040.00417.39
8.1.90.0040.00617.33
8.1.80.0000.00717.47
8.1.70.0030.00517.36
8.1.60.0110.00017.61
8.1.50.0060.00317.41
8.1.40.0050.00617.41
8.1.30.0000.00917.48
8.1.20.0080.00017.64
8.1.10.0040.00417.64
8.1.00.0000.00817.49
8.0.300.0120.00018.77
8.0.290.0040.00416.62
8.0.280.0030.00318.34
8.0.270.0030.00317.25
8.0.260.0000.00617.25
8.0.250.0000.00816.84
8.0.240.0000.00616.83
8.0.230.0040.00416.94
8.0.220.0000.00716.95
8.0.210.0090.00016.86
8.0.200.0000.00616.81
8.0.190.0050.00216.84
8.0.180.0000.00716.79
8.0.170.0040.00416.82
8.0.160.0000.00816.78
8.0.150.0000.00716.72
8.0.140.0000.00716.74
8.0.130.0050.00013.29
8.0.120.0000.00816.82
8.0.110.0000.00716.93
8.0.100.0000.00716.90
8.0.90.0000.00716.89
8.0.80.0090.01316.91
8.0.70.0000.00816.95
8.0.60.0030.00316.70
8.0.50.0000.00816.77
8.0.30.0100.00616.95
8.0.20.0090.00917.40
8.0.10.0040.00416.81
8.0.00.0100.01316.60
7.4.330.0030.00315.14
7.4.320.0000.00616.59
7.4.300.0060.00016.68
7.4.290.0030.00316.54
7.4.280.0070.00016.59
7.4.270.0000.00716.60
7.4.260.0000.00716.51
7.4.250.0000.00716.39
7.4.240.0070.00016.65
7.4.230.0000.00716.34
7.4.220.0090.00916.55
7.4.210.0080.00816.52
7.4.200.0050.00216.57
7.4.160.0090.00616.41
7.4.150.0140.00617.40
7.4.140.0140.00517.86
7.4.130.0080.00916.43
7.4.120.0100.00616.56
7.4.110.0070.01116.56
7.4.100.0060.00916.69
7.4.90.0140.00316.55
7.4.80.0110.01119.39
7.4.70.0100.00716.58
7.4.60.0090.01316.47
7.4.50.0060.01116.23
7.4.40.0090.01216.51
7.4.30.0150.00616.32
7.4.00.0080.00614.99
7.3.330.0000.00513.16
7.3.320.0000.00513.06
7.3.310.0000.00816.25
7.3.300.0030.00316.33
7.3.290.0090.00516.27
7.3.280.0090.00916.30
7.3.270.0070.01017.40
7.3.260.0110.00816.41
7.3.250.0110.00716.30
7.3.240.0100.00916.39
7.3.230.0070.01016.39
7.3.210.0100.00716.57
7.3.200.0030.01316.49
7.3.190.0060.01316.32
7.3.180.0120.00916.30
7.3.170.0060.00916.64
7.3.160.0080.00816.61
7.3.120.0100.01014.66
7.3.110.0080.00814.80
7.3.100.0060.01014.39
7.3.90.0070.01114.75
7.3.80.0070.00414.81
7.3.70.0090.00014.75
7.3.60.0030.01014.80
7.3.50.0070.01014.77
7.3.40.0080.00814.82
7.3.30.0090.00614.81
7.3.20.0070.00716.67
7.3.10.0100.00016.71
7.3.00.0080.00416.36
7.2.330.0080.00816.43
7.2.320.0040.01616.83
7.2.310.0100.00716.59
7.2.300.0070.01116.54
7.2.290.0120.00916.77
7.2.250.0030.01215.23
7.2.240.0060.01314.97
7.2.230.0070.00715.07
7.2.220.0100.00714.97
7.2.210.0080.00514.54
7.2.200.0030.01015.19
7.2.190.0030.00914.94
7.2.180.0030.00914.93
7.2.170.0000.00915.02
7.2.60.0090.00616.91
7.2.00.0030.01019.51
7.1.330.0040.01115.77
7.1.320.0110.00415.78
7.1.310.0050.00315.75
7.1.300.0040.00715.70
7.1.290.0030.01115.85
7.1.280.0030.00715.77
7.1.270.0060.00615.50
7.1.260.0040.00715.96
7.1.200.0030.01015.93
7.1.70.0030.00717.19
7.1.60.0100.00019.75
7.1.00.0100.07022.33
7.0.200.0030.00716.75
7.0.90.0070.06720.07
7.0.80.0170.05319.98
7.0.70.0130.05319.87
7.0.60.0100.06320.01
7.0.50.0270.04320.36
7.0.40.0330.05320.33
7.0.30.0270.06720.27
7.0.20.0300.06020.40
7.0.10.0330.05720.37
7.0.00.0300.05720.26
5.6.240.0200.05720.62
5.6.230.0100.06020.79
5.6.220.0170.05320.46
5.6.210.0200.05020.72
5.6.200.0100.07721.08
5.6.190.0030.06721.00
5.6.180.0230.05021.07
5.6.170.0130.05721.07
5.6.160.0100.05721.05
5.6.150.0170.05020.98
5.6.140.0070.06321.06
5.6.130.0130.06021.18
5.6.120.0170.07021.11
5.6.110.0030.07320.99
5.6.100.0030.06721.03
5.6.90.0100.06321.05
5.6.80.0230.04720.50
5.6.70.0130.05320.46
5.6.60.0130.05320.37
5.6.50.0100.05720.55
5.6.40.0070.06020.47
5.6.30.0270.06320.44
5.6.20.0170.05020.42
5.6.10.0070.06020.48
5.6.00.0170.05320.34

preferences:
48.02 ms | 401 KiB | 5 Q