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.40.0100.00719.18
8.3.30.0040.01118.85
8.3.20.0070.00020.13
8.3.10.0050.00323.56
8.3.00.0000.00719.97
8.2.170.0150.00622.96
8.2.160.0070.00720.52
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0060.00619.25
8.2.120.0040.00426.35
8.2.110.0090.00020.46
8.2.100.0060.00617.78
8.2.90.0030.00519.13
8.2.80.0030.00517.97
8.2.70.0040.00417.60
8.2.60.0040.00417.93
8.2.50.0030.00618.07
8.2.40.0040.00719.41
8.2.30.0070.00020.50
8.2.20.0000.00817.77
8.2.10.0000.00718.04
8.2.00.0050.00318.03
8.1.270.0000.00822.13
8.1.260.0030.00528.09
8.1.250.0040.00428.09
8.1.240.0060.01523.71
8.1.230.0090.00619.10
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0060.00317.63
8.1.190.0070.00017.57
8.1.180.0040.00418.10
8.1.170.0000.00818.65
8.1.160.0000.00720.84
8.1.150.0040.00418.92
8.1.140.0040.00419.60
8.1.130.0070.00017.64
8.1.120.0030.00517.61
8.1.110.0040.00417.58
8.1.100.0000.00717.60
8.1.90.0050.00317.65
8.1.80.0000.00717.66
8.1.70.0000.00717.58
8.1.60.0040.00417.78
8.1.50.0000.00817.57
8.1.40.0040.00417.65
8.1.30.0000.00817.83
8.1.20.0000.00817.82
8.1.10.0060.00317.67
8.1.00.0050.00317.66
8.0.300.0070.00018.77
8.0.290.0060.00316.88
8.0.280.0030.00318.38
8.0.270.0000.00717.16
8.0.260.0030.00317.20
8.0.250.0070.00017.15
8.0.240.0000.00717.21
8.0.230.0000.00717.10
8.0.220.0050.00317.07
8.0.210.0000.00816.93
8.0.200.0000.00616.93
8.0.190.0000.00817.12
8.0.180.0000.00817.07
8.0.170.0040.00417.13
8.0.160.0030.00316.99
8.0.150.0000.00716.96
8.0.140.0000.00717.11
8.0.130.0000.00713.54
8.0.120.0080.00016.96
8.0.110.0040.00417.09
8.0.100.0040.00417.08
8.0.90.0040.00417.15
8.0.80.0090.00617.07
8.0.70.0050.00217.18
8.0.60.0040.00416.92
8.0.50.0040.00417.11
8.0.30.0090.01117.22
8.0.20.0100.01217.46
8.0.10.0000.00817.11
8.0.00.0100.01016.88
7.4.330.0000.00516.91
7.4.320.0000.00716.67
7.4.300.0070.00016.86
7.4.290.0040.00416.71
7.4.280.0000.01116.78
7.4.270.0030.00316.80
7.4.260.0000.00716.62
7.4.250.0070.00016.63
7.4.240.0030.00316.82
7.4.230.0030.00316.62
7.4.220.0090.00916.89
7.4.210.0070.01316.77
7.4.200.0000.00716.90
7.4.160.0180.00016.51
7.4.150.0150.00617.40
7.4.140.0160.00817.86
7.4.130.0030.01316.71
7.4.120.0090.01416.64
7.4.110.0070.01016.73
7.4.100.0060.01516.65
7.4.90.0130.01016.79
7.4.80.0100.01019.39
7.4.70.0140.00716.73
7.4.60.0150.00316.64
7.4.50.0100.00716.70
7.4.40.0060.01116.65
7.4.30.0070.01116.88
7.4.00.0000.01415.18
7.3.330.0000.00513.48
7.3.320.0030.00313.52
7.3.310.0000.00816.38
7.3.300.0000.00716.52
7.3.290.0080.01116.49
7.3.280.0050.00616.56
7.3.270.0000.01717.40
7.3.260.0070.01116.73
7.3.250.0130.00716.66
7.3.240.0120.00816.72
7.3.230.0100.00716.64
7.3.210.0100.00616.75
7.3.200.0140.00316.55
7.3.190.0030.01416.52
7.3.180.0060.00916.78
7.3.170.0120.00916.70
7.3.160.0110.00616.91
7.2.330.0130.00616.84
7.2.320.0090.00816.96
7.2.310.0160.00816.79
7.2.300.0140.00316.98
7.2.290.0070.01416.75
7.2.60.0030.01216.97
7.2.00.0060.00619.68
7.1.200.0030.01015.80
7.1.100.0000.01318.46
7.1.70.0000.01017.22
7.1.60.0030.02019.50
7.1.50.0090.01216.89
7.1.00.0000.08022.52
7.0.200.0410.00914.91
7.0.60.0070.06019.79
7.0.50.0200.06017.89
7.0.40.0130.04719.98
7.0.30.0430.07020.32
7.0.20.0170.04720.26
7.0.10.0130.04320.13
7.0.00.0130.07320.10
5.6.280.0030.06020.99
5.6.210.0100.08020.71
5.6.200.0100.03718.22
5.6.190.0030.08720.46
5.6.180.0370.04020.48
5.6.170.0230.03320.42
5.6.160.0030.04020.45
5.6.150.0030.05718.19
5.6.140.0070.05718.29
5.6.130.0070.03718.18
5.6.120.0070.08321.02
5.6.110.0030.06321.02
5.6.100.0070.04020.99
5.6.90.0100.07720.92
5.6.80.0070.06720.41
5.5.350.4100.03720.48
5.5.340.0100.07717.96
5.5.330.0070.03720.47
5.5.320.0030.08020.19
5.5.310.0430.07020.51
5.5.300.0070.05317.92
5.5.290.0000.04318.04
5.5.280.0000.04320.65
5.5.270.0130.06020.80
5.5.260.0130.06020.86
5.5.250.0200.07320.69
5.5.240.0270.06720.19

preferences:
39.52 ms | 400 KiB | 5 Q