3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Palindrome { public static function isPalindrome($str) { $s = 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.60.0100.00716.88
8.3.50.0060.01222.11
8.3.40.0100.01019.13
8.3.30.0070.00718.93
8.3.20.0030.01020.38
8.3.10.0000.00723.64
8.3.00.0050.00319.79
8.2.180.0120.00316.75
8.2.170.0140.00722.96
8.2.160.0000.01320.35
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0040.00819.14
8.2.120.0000.00826.35
8.2.110.0070.00321.07
8.2.100.0070.00418.04
8.2.90.0080.00019.22
8.2.80.0040.00417.97
8.2.70.0040.00417.88
8.2.60.0000.00817.80
8.2.50.0030.00618.07
8.2.40.0070.00420.93
8.2.30.0040.00420.71
8.2.20.0050.00317.95
8.2.10.0080.00017.97
8.2.00.0000.00718.07
8.1.280.0100.00725.92
8.1.270.0030.00622.10
8.1.260.0040.00428.09
8.1.250.0060.00328.09
8.1.240.0030.00619.21
8.1.230.0070.00719.12
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0070.00317.59
8.1.190.0070.00017.76
8.1.180.0050.00218.10
8.1.170.0040.00418.72
8.1.160.0000.00720.84
8.1.150.0020.00518.79
8.1.140.0060.00319.50
8.1.130.0000.00717.72
8.1.120.0040.00417.63
8.1.110.0040.00417.60
8.1.100.0050.00317.50
8.1.90.0070.00017.52
8.1.80.0000.00717.58
8.1.70.0040.00417.53
8.1.60.0040.00417.71
8.1.50.0040.00417.70
8.1.40.0050.00317.56
8.1.30.0000.00817.84
8.1.20.0040.00417.67
8.1.10.0000.00717.76
8.1.00.0040.00417.53
8.0.300.0000.00718.77
8.0.290.0000.00717.00
8.0.280.0030.00318.38
8.0.270.0040.00417.28
8.0.260.0000.00617.21
8.0.250.0020.00517.16
8.0.240.0040.00417.14
8.0.230.0000.00717.09
8.0.220.0040.00417.01
8.0.210.0000.00717.03
8.0.200.0070.00016.98
8.0.190.0000.00817.07
8.0.180.0030.00516.95
8.0.170.0080.00017.00
8.0.160.0070.00016.94
8.0.150.0000.00817.07
8.0.140.0000.00717.05
8.0.130.0060.00013.45
8.0.120.0030.00517.00
8.0.110.0040.00417.04
8.0.100.0040.00417.05
8.0.90.0000.00717.00
8.0.80.0100.01017.13
8.0.70.0000.00716.87
8.0.60.0050.00317.14
8.0.50.0000.00716.99
8.0.30.0110.00817.26
8.0.20.0170.00417.40
8.0.10.0000.00717.09
8.0.00.0100.00716.90
7.4.330.0060.00016.86
7.4.320.0040.00416.76
7.4.300.0030.00316.72
7.4.290.0000.00716.73
7.4.280.0060.00616.81
7.4.270.0040.00416.66
7.4.260.0070.00016.65
7.4.250.0070.00016.79
7.4.240.0030.00316.70
7.4.230.0030.00316.86
7.4.220.0030.01616.74
7.4.210.0100.00616.58
7.4.200.0030.00316.82
7.4.160.0030.01316.83
7.4.150.0110.00717.40
7.4.140.0100.01517.86
7.4.130.0120.00816.80
7.4.120.0100.00716.75
7.4.110.0070.01116.69
7.4.100.0140.00316.52
7.4.90.0100.00716.87
7.4.80.0030.02119.39
7.4.70.0130.01016.74
7.4.60.0030.01316.61
7.4.50.0100.00716.59
7.4.40.0060.01216.71
7.4.30.0080.00916.80
7.4.10.0070.01315.07
7.4.00.0020.01314.84
7.3.330.0000.00513.30
7.3.320.0000.00513.51
7.3.310.0000.00716.38
7.3.300.0070.00016.52
7.3.290.0080.00716.49
7.3.280.0110.00716.55
7.3.270.0080.00917.40
7.3.260.0120.00416.53
7.3.250.0080.00916.76
7.3.240.0090.00916.52
7.3.230.0100.01416.60
7.3.210.0060.00916.75
7.3.200.0070.01016.48
7.3.190.0170.00016.77
7.3.180.0110.00616.72
7.3.170.0140.00416.49
7.3.160.0070.01016.51
7.3.130.0070.01014.88
7.3.120.0120.00315.18
7.3.110.0070.01314.98
7.3.100.0070.00714.61
7.3.90.0090.00315.08
7.3.80.0060.00614.76
7.3.70.0060.00814.70
7.3.60.0060.00815.12
7.3.50.0040.01115.11
7.3.40.0040.01215.11
7.3.30.0000.01415.04
7.3.20.0110.00417.01
7.3.10.0050.00816.87
7.3.00.0080.00516.95
7.2.330.0070.01116.85
7.2.320.0070.01016.87
7.2.310.0150.00916.89
7.2.300.0140.00316.56
7.2.290.0090.00916.83
7.2.260.0160.00315.29
7.2.250.0020.01715.07
7.2.240.0100.00615.14
7.2.230.0000.01815.16
7.2.220.0110.00015.00
7.2.210.0070.00715.38
7.2.200.0030.00715.25
7.2.190.0000.01414.96
7.2.180.0030.01015.31
7.2.170.0000.01415.21
7.2.160.0030.01015.08
7.2.150.0070.00717.21
7.2.140.0090.00316.78
7.2.130.0080.00717.06
7.2.120.0070.00617.13
7.2.110.0080.00517.13
7.2.100.0070.00617.09
7.2.90.0080.00417.07
7.2.80.0030.00917.06
7.2.70.0060.00616.90
7.2.60.0060.00817.18
7.2.50.0080.00417.01
7.2.40.0040.01017.11
7.2.30.0110.00317.20
7.2.20.0030.01317.09
7.2.10.0060.00717.17
7.2.00.0080.00517.78
7.1.330.0110.00416.00
7.1.320.0030.00615.87
7.1.310.0030.00915.61
7.1.300.0110.00415.94
7.1.290.0060.00616.14
7.1.280.0100.00316.11
7.1.270.0000.00815.81
7.1.260.0070.00715.93
7.1.250.0040.00916.00
7.1.240.0000.01416.01
7.1.230.0040.01115.99
7.1.220.0040.01116.01
7.1.210.0030.00715.98
7.1.200.0030.00716.08
7.1.190.0060.00615.91
7.1.180.0070.01015.87
7.1.170.0040.00716.06
7.1.160.0030.00916.09
7.1.150.0000.01915.91
7.1.140.0030.00615.88
7.1.130.0040.00715.97
7.1.120.0070.00415.81
7.1.110.0070.00716.06
7.1.100.0060.00817.21
7.1.90.0080.00415.84
7.1.80.0040.00715.79
7.1.70.0040.01116.67
7.1.60.0060.01317.81
7.1.50.0060.01016.64
7.1.40.0050.00315.96
7.1.30.0060.00615.63
7.1.20.0000.00815.95
7.1.10.0090.00416.08
7.1.00.0040.04019.29
7.0.330.0000.01315.47
7.0.320.0070.00715.33
7.0.310.0070.00715.50
7.0.300.0060.00315.60
7.0.290.0070.00315.61
7.0.280.0000.01415.38
7.0.270.0120.00015.44
7.0.260.0030.00915.20
7.0.250.0120.00015.47
7.0.240.0060.00315.52
7.0.230.0000.01015.47
7.0.220.0060.00615.75
7.0.210.0070.00715.36
7.0.200.0240.00515.27
7.0.190.0040.00715.63
7.0.180.0040.00715.73
7.0.170.0030.00815.76
7.0.160.0030.00615.71
7.0.150.0030.01015.45
7.0.140.0110.00415.51
7.0.130.0000.00915.71
7.0.120.0040.00915.45
7.0.110.0060.00615.45
7.0.100.0040.00415.46
7.0.90.0040.00715.59
7.0.80.0070.00715.58
7.0.70.0030.01315.49
7.0.60.0070.03717.75
7.0.50.0100.04316.78
7.0.40.0130.04017.03
7.0.30.0120.04416.90
7.0.20.0110.02517.02
7.0.10.0130.04216.91
7.0.00.0050.05016.87
5.6.400.0000.00914.57
5.6.390.0110.00314.20
5.6.380.0110.00414.43
5.6.370.0120.00314.47
5.6.360.0070.00414.62
5.6.350.0100.00614.78
5.6.340.0040.00814.67
5.6.330.0030.00614.29
5.6.320.0040.01114.32
5.6.310.0090.00614.48
5.6.300.0030.00614.66
5.6.290.0060.00914.52
5.6.280.0070.01717.76
5.6.270.0100.00314.24
5.6.260.0100.00614.33
5.6.250.0100.00614.69
5.6.240.0070.00714.30
5.6.230.0000.01214.51
5.6.220.0060.00614.23
5.6.210.0080.03717.41
5.6.200.0050.03816.36
5.6.190.0040.02417.44
5.6.180.0220.04217.49
5.6.170.0110.02317.57
5.6.160.0030.02517.42
5.6.150.0060.02816.37
5.6.140.0020.02716.24
5.6.130.0070.04216.25
5.6.120.0050.02317.67
5.6.110.0070.03017.55
5.6.100.0030.02317.53
5.6.90.0030.04717.57
5.6.80.0130.04317.21
5.6.70.0060.00314.49
5.6.60.0060.00914.13
5.6.50.0060.00914.15
5.6.40.0060.00614.36
5.6.30.0000.01214.46
5.6.20.0090.00314.11
5.6.10.0080.00614.53
5.6.00.0040.01114.19
5.5.380.0120.00314.06
5.5.370.0040.01114.36
5.5.360.0110.00014.49
5.5.350.1940.02217.27
5.5.340.0070.02416.17
5.5.330.0040.02417.21
5.5.320.0050.03817.18
5.5.310.0120.03617.38
5.5.300.0080.04316.21
5.5.290.0100.04016.01
5.5.280.0100.04017.45
5.5.270.0050.04517.43
5.5.260.0070.04617.53
5.5.250.0070.02717.57
5.5.240.0150.03517.13
5.5.230.0030.00914.10
5.5.220.0030.00614.26
5.5.210.0040.00814.21
5.5.200.0000.01313.77
5.5.190.0070.00314.47
5.5.180.0090.00613.87
5.5.170.0090.00614.37
5.5.160.0060.00614.30
5.5.150.0080.00814.31
5.5.140.0030.01314.35
5.5.130.0030.01014.43
5.5.120.0000.01114.43
5.5.110.0100.00314.27
5.5.100.0060.00914.19
5.5.90.0100.00314.30
5.5.80.0040.00414.41
5.5.70.0000.01514.20
5.5.60.0040.01113.72
5.5.50.0040.01113.90
5.5.40.0070.00714.01
5.5.30.0040.00814.41
5.5.20.0000.01514.06
5.5.10.0030.00813.86
5.5.00.0030.01013.84

preferences:
53.68 ms | 401 KiB | 5 Q