3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Palindrome { public static function isPalindrome($str) { $s = str_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.63
8.3.50.0070.00718.18
8.3.40.0070.00718.77
8.3.30.0140.00018.83
8.3.20.0040.00420.29
8.3.10.0080.00023.44
8.3.00.0000.00819.79
8.2.180.0060.01216.46
8.2.170.0030.01222.96
8.2.160.0080.00820.58
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0110.00019.18
8.2.120.0080.00026.35
8.2.110.0030.00720.52
8.2.100.0090.00317.80
8.2.90.0000.00819.23
8.2.80.0050.00317.97
8.2.70.0040.00417.75
8.2.60.0040.00418.03
8.2.50.0000.00818.07
8.2.40.0040.00421.07
8.2.30.0000.00720.50
8.2.20.0030.00617.73
8.2.10.0040.00418.05
8.2.00.0000.00717.96
8.1.270.0030.00522.19
8.1.260.0030.00628.09
8.1.250.0060.00328.09
8.1.240.0030.00523.87
8.1.230.0040.00717.66
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0040.00417.36
8.1.190.0140.00717.15
8.1.180.0000.00718.10
8.1.170.0040.00418.50
8.1.160.0000.00720.63
8.1.150.0000.00718.80
8.1.140.0040.00419.47
8.1.130.0040.00417.67
8.1.120.0050.00217.33
8.1.110.0030.00317.32
8.1.100.0050.00317.49
8.1.90.0040.00417.51
8.1.80.0000.00717.48
8.1.70.0050.00217.49
8.1.60.0000.00917.54
8.1.50.0040.00417.45
8.1.40.0060.00317.41
8.1.30.0050.00317.63
8.1.20.0040.00417.47
8.1.10.0000.00717.55
8.1.00.0000.00717.35
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0030.00318.55
8.0.270.0030.00317.17
8.0.260.0070.00017.18
8.0.250.0070.00016.94
8.0.240.0040.00417.03
8.0.230.0000.00816.94
8.0.220.0000.00716.85
8.0.210.0040.00416.90
8.0.200.0070.00016.84
8.0.190.0000.00816.82
8.0.180.0040.00416.87
8.0.170.0050.00316.77
8.0.160.0000.00816.91
8.0.150.0000.00716.86
8.0.140.0040.00416.90
8.0.130.0070.00013.34
8.0.120.0040.00416.95
8.0.110.0050.00316.90
8.0.100.0040.00416.87
8.0.90.0000.00716.77
8.0.80.0030.01716.90
8.0.70.0000.00716.81
8.0.60.0030.00416.80
8.0.50.0000.00717.06
8.0.30.0110.01017.32
8.0.20.0110.00917.40
8.0.10.0000.00817.08
8.0.00.0090.00816.86
7.4.330.0030.00316.66
7.4.320.0040.00416.39
7.4.300.0070.00016.64
7.4.290.0000.00716.61
7.4.280.0040.00716.36
7.4.270.0030.00316.40
7.4.260.0050.00316.44
7.4.250.0000.00916.55
7.4.240.0050.00316.51
7.4.230.0030.00316.63
7.4.220.0100.01716.64
7.4.210.0070.00916.59
7.4.200.0000.00716.25
7.4.160.0030.01416.60
7.4.150.0040.01817.40
7.4.140.0090.00917.86
7.4.130.0070.01016.55
7.4.120.0080.01116.61
7.4.110.0070.01016.52
7.4.100.0090.00916.55
7.4.90.0070.01116.46
7.4.80.0060.01619.39
7.4.70.0030.01316.77
7.4.60.0030.01416.63
7.4.50.0030.01316.48
7.4.40.0060.01116.66
7.4.30.0080.01416.66
7.4.00.0040.01115.06
7.3.330.0050.00013.35
7.3.320.0030.00313.35
7.3.310.0000.00716.25
7.3.300.0050.00316.33
7.3.290.0070.00016.36
7.3.280.0050.01316.33
7.3.270.0090.00917.40
7.3.260.0100.00716.39
7.3.250.0070.01316.44
7.3.240.0100.00816.41
7.3.230.0030.01516.52
7.3.210.0080.00816.28
7.3.200.0060.01516.44
7.3.190.0100.00716.34
7.3.180.0090.00616.53
7.3.170.0060.00916.39
7.3.160.0130.01016.52
7.2.330.0110.00716.36
7.2.320.0090.00916.75
7.2.310.0110.01116.70
7.2.300.0140.00316.71
7.2.290.0070.01016.83
7.2.120.0070.01016.46
7.2.110.0070.00316.77
7.2.100.0070.00716.65
7.2.90.0060.00616.43
7.2.80.0000.01316.43
7.2.70.0000.01216.86
7.2.60.0080.00417.02
7.2.50.0070.00717.00
7.2.40.0030.01017.01
7.2.30.0070.00716.95
7.2.20.0070.00716.95
7.2.10.0090.00616.95
7.2.00.0060.00718.09
7.1.240.0070.00715.72
7.1.230.0130.00315.91
7.1.220.0040.00815.52
7.1.210.0080.00015.61
7.1.200.0050.00815.76
7.1.190.0120.00315.63
7.1.180.0040.00715.76
7.1.170.0040.00416.01
7.1.160.0070.00415.86
7.1.150.0080.00315.76
7.1.140.0030.01015.81
7.1.130.0030.01015.92
7.1.120.0080.00315.89
7.1.110.0030.01015.68
7.1.100.0040.01116.96
7.1.90.0030.01015.96
7.1.80.0090.00615.84
7.1.70.0050.00616.55
7.1.60.0100.00817.53
7.1.50.0100.00616.29
7.1.40.0080.00415.71
7.1.30.0060.00615.78
7.1.20.0060.01015.85
7.1.10.0080.00315.69
7.1.00.0020.04219.19
7.0.320.0000.01215.34
7.0.310.0040.00815.43
7.0.300.0070.00715.33
7.0.290.0040.01115.34
7.0.280.0030.01215.34
7.0.270.0060.00315.26
7.0.260.0050.00515.13
7.0.250.0000.01315.47
7.0.240.0040.00915.49
7.0.230.0090.00315.38
7.0.220.0000.00915.59
7.0.210.0040.00715.38
7.0.200.0200.00715.14
7.0.190.0060.00315.30
7.0.180.0090.00615.40
7.0.170.0030.01015.23
7.0.160.0120.00315.50
7.0.150.0060.00615.41
7.0.140.0030.00915.54
7.0.130.0000.01415.44
7.0.120.0040.00815.41
7.0.110.0070.00315.34
7.0.100.0110.00415.52
7.0.90.0080.00315.46
7.0.80.0090.00615.43
7.0.70.0020.00515.54
7.0.60.0050.03617.70
7.0.50.0070.03316.66
7.0.40.0070.04716.80
7.0.30.0250.03316.77
7.0.20.0160.02216.73
7.0.10.0040.03616.81
7.0.00.0100.04416.90
5.6.380.0030.00614.35
5.6.370.0110.00414.41
5.6.360.0070.00714.32
5.6.350.0030.01014.13
5.6.340.0030.01214.38
5.6.330.0060.00614.39
5.6.320.0030.00514.57
5.6.310.0040.00814.38
5.6.300.0030.01314.15
5.6.290.0070.00714.34
5.6.280.0050.03717.47
5.6.270.0070.00713.99
5.6.260.0060.00914.17
5.6.250.0040.01114.13
5.6.240.0030.01014.19
5.6.230.0030.01014.38
5.6.220.0000.01214.54
5.6.210.0050.04617.30
5.6.200.0020.03916.24
5.6.190.0080.02317.53
5.6.180.0180.02517.40
5.6.170.0120.02317.40
5.6.160.0040.02117.39
5.6.150.0050.03016.33
5.6.140.0080.02316.24
5.6.130.0030.02516.30
5.6.120.0030.04817.67
5.6.110.0030.03917.63
5.6.100.0100.02017.66
5.6.90.0030.03717.76
5.6.80.0070.03617.40
5.6.70.0090.00614.09
5.6.60.0060.00314.17
5.6.50.0060.00914.41
5.6.40.0030.01314.08
5.6.30.0040.00414.25
5.6.20.0130.00014.17
5.6.10.0040.00414.14
5.6.00.0130.00014.07
5.5.380.0000.00611.05
5.5.370.0030.00711.30
5.5.360.0060.00311.06
5.5.350.2210.02015.89
5.5.340.0060.04414.51
5.5.330.0050.02315.70
5.5.320.0060.03815.84
5.5.310.0210.03715.83
5.5.300.0080.04314.54
5.5.290.0030.02214.42
5.5.280.0030.02816.06
5.5.270.0050.03016.02
5.5.260.0070.04315.91
5.5.250.0070.04615.76
5.5.240.0080.04415.55
5.5.230.0000.00711.28
5.5.220.0000.01011.07
5.5.210.0070.00010.95
5.5.200.0030.00611.00
5.5.190.0040.00810.86
5.5.180.0030.00310.98
5.5.170.0040.01113.90
5.5.160.0060.00311.02
5.5.150.0000.00710.82
5.5.140.0000.00910.97
5.5.130.0040.00811.29
5.5.120.0060.00311.26
5.5.110.0000.01210.78
5.5.100.0000.01211.18
5.5.90.0060.00011.31
5.5.80.0040.00811.09
5.5.70.0030.00610.82
5.5.60.0100.00010.89
5.5.50.0060.00611.29
5.5.40.0080.00410.82
5.5.30.0000.00611.33
5.5.20.0040.00711.24
5.5.10.0000.00810.93
5.5.00.0080.00411.15

preferences:
51.81 ms | 400 KiB | 5 Q