3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Palindrome { public static function isPalindrome($str) { $s = strToLower(preg_replace('/[^A-Za-z]/', '', $str)); echo $s; throw new Exception('Not implemented'); } } // For testing purposes (do not submit uncommented): echo Palindrome::isPalindrome('Noel sees Leon.');

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.40.0100.01319.09
8.3.30.0040.01119.04
8.3.20.0000.00720.48
8.3.10.0080.00023.66
8.3.00.0080.00019.73
8.2.170.0100.01022.96
8.2.160.0070.01020.27
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00721.03
8.2.120.0080.00026.35
8.2.110.0100.00021.09
8.2.100.0000.01217.91
8.2.90.0030.00519.09
8.2.80.0040.00417.97
8.2.70.0060.00317.88
8.2.60.0040.00417.93
8.2.50.0050.00318.07
8.2.40.0030.00518.22
8.2.30.0030.00617.90
8.2.20.0030.00517.88
8.2.10.0000.00717.96
8.2.00.0000.00717.99
8.1.270.0060.00322.12
8.1.260.0000.00728.09
8.1.250.0080.00028.09
8.1.240.0100.00021.31
8.1.230.0030.00718.99
8.1.220.0030.00617.74
8.1.210.0040.00418.77
8.1.200.0000.00817.48
8.1.190.0080.00717.25
8.1.180.0030.00518.10
8.1.170.0040.00418.79
8.1.160.0040.00418.84
8.1.150.0000.00718.82
8.1.140.0040.00419.52
8.1.130.0030.00317.66
8.1.120.0030.00617.50
8.1.110.0050.00217.57
8.1.100.0040.00417.61
8.1.90.0040.00417.51
8.1.80.0030.00517.63
8.1.70.0000.00717.56
8.1.60.0040.00417.72
8.1.50.0000.00917.71
8.1.40.0000.00817.63
8.1.30.0060.00317.81
8.1.20.0000.00817.75
8.1.10.0040.00417.60
8.1.00.0050.00217.65
8.0.300.0090.00018.77
8.0.290.0060.00316.88
8.0.280.0000.00718.48
8.0.270.0000.00717.32
8.0.260.0050.00217.27
8.0.250.0000.00717.09
8.0.240.0040.00417.15
8.0.230.0030.00317.09
8.0.220.0000.00716.97
8.0.210.0030.00517.05
8.0.200.0000.00716.96
8.0.190.0040.00417.16
8.0.180.0070.00016.94
8.0.170.0050.00217.04
8.0.160.0040.00417.00
8.0.150.0070.00017.11
8.0.140.0000.00717.04
8.0.130.0030.00313.57
8.0.120.0040.00417.03
8.0.110.0000.00817.09
8.0.100.0080.00017.11
8.0.90.0070.00016.96
8.0.80.0090.00617.04
8.0.70.0000.00816.93
8.0.60.0040.00417.20
8.0.50.0000.00717.05
8.0.30.0090.00917.22
8.0.20.0070.01317.40
8.0.10.0050.00317.14
8.0.00.0110.00616.83
7.4.330.0020.00216.85
7.4.320.0000.00616.73
7.4.300.0060.00016.72
7.4.290.0030.00516.82
7.4.280.0060.00516.65
7.4.270.0000.00716.66
7.4.260.0020.00516.79
7.4.250.0000.00716.58
7.4.240.0020.00616.80
7.4.230.0070.00016.79
7.4.220.0120.00616.78
7.4.210.0180.00416.86
7.4.200.0000.00716.84
7.4.160.0070.01016.86
7.4.150.0170.00017.40
7.4.140.0150.00817.86
7.4.130.0090.00816.67
7.4.120.0130.00516.71
7.4.110.0070.01016.76
7.4.100.0100.01016.68
7.4.90.0040.01416.64
7.4.80.0030.01819.39
7.4.70.0000.01716.69
7.4.60.0100.01316.63
7.4.50.0070.00716.67
7.4.40.0150.00316.50
7.4.30.0070.01016.60
7.4.00.0040.01115.13
7.3.330.0050.00013.48
7.3.320.0000.00613.36
7.3.310.0000.00716.40
7.3.300.0000.00616.58
7.3.290.0060.00916.48
7.3.280.0070.01116.52
7.3.270.0120.00417.40
7.3.260.0150.00816.50
7.3.250.0120.00716.75
7.3.240.0120.00616.44
7.3.230.0130.00616.49
7.3.210.0030.01616.73
7.3.200.0030.01416.46
7.3.190.0100.00716.71
7.3.180.0060.01316.72
7.3.170.0120.00316.76
7.3.160.0160.00616.66
7.3.10.0000.01516.85
7.3.00.0100.00616.77
7.2.330.0150.00616.91
7.2.320.0140.00316.92
7.2.310.0080.00816.88
7.2.300.0100.00716.92
7.2.290.0080.01516.83
7.2.130.0060.00917.15
7.2.120.0000.01217.18
7.2.110.0070.01017.09
7.2.100.0040.01116.87
7.2.90.0040.00717.04
7.2.80.0100.00617.07
7.2.70.0000.01317.00
7.2.60.0030.01017.19
7.2.50.0090.00617.12
7.2.40.0080.00516.96
7.2.30.0080.00317.21
7.2.20.0040.00717.04
7.2.10.0060.00917.26
7.2.00.0050.00818.53
7.1.250.0060.00916.14
7.1.200.0130.00015.90
7.1.100.0080.00318.29
7.1.70.0070.00417.13
7.1.60.0070.01819.50
7.1.50.0060.00616.99
7.1.00.0070.07322.34
7.0.200.0290.00614.82
7.0.60.0100.08019.91
7.0.50.0030.07317.99
7.0.40.0070.04720.12
7.0.30.0500.05020.32
7.0.20.0270.08020.35
7.0.10.0030.04720.11
7.0.00.0100.07720.08
5.6.280.0000.03321.15
5.6.210.0130.08020.51
5.6.200.0130.06318.29
5.6.190.0070.04020.34
5.6.180.0330.08320.42
5.6.170.0200.03720.50
5.6.160.0070.03720.54
5.6.150.0000.07318.17
5.6.140.0070.06318.24
5.6.130.0100.07018.28
5.6.120.0130.06321.00
5.6.110.0070.09021.14
5.6.100.0000.04721.02
5.6.90.0030.06320.98
5.6.80.0130.07320.38
5.5.350.4030.04320.33
5.5.340.0130.07317.98
5.5.330.0070.03720.37
5.5.320.0000.08020.42
5.5.310.0430.06020.35
5.5.300.0070.08017.94
5.5.290.0100.04717.99
5.5.280.0030.06020.80
5.5.270.0100.07320.64
5.5.260.0030.08720.77
5.5.250.0030.08320.64
5.5.240.0100.03320.15

preferences:
51.57 ms | 400 KiB | 5 Q