3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Maybe put this in a filter class? function removeQuotedValues($string) { $pattern = '#`[a-zA-Z0-9]+`#'; // our regex pattern $string = preg_replace($pattern, '', $string); //remove `backtickedStrings` $replace = array(' ' => '', '(,' => '(', ',)' => ')', ',,' => ','); foreach ($replace as $old => $new) { $string = str_replace($old, $new, $string); } return $string; } $string = '(`getridofme`, 1,2), (1,2,3, `dm0c60544`),(2 ,3 ,3) '; echo removeQuotedValues($string);

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.0090.00618.43
8.3.50.0140.00416.59
8.3.40.0070.00718.96
8.3.30.0140.00018.66
8.3.20.0090.00019.97
8.3.10.0030.00523.48
8.3.00.0040.00419.80
8.2.180.0140.00316.63
8.2.170.0040.01222.96
8.2.160.0120.00319.16
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0050.00319.32
8.2.120.0080.00026.35
8.2.110.0060.00322.27
8.2.100.0090.00519.47
8.2.90.0040.00419.22
8.2.80.0050.00317.97
8.2.70.0040.00417.75
8.2.60.0030.00518.03
8.2.50.0040.00418.10
8.2.40.0000.00920.47
8.2.30.0040.00419.32
8.2.20.0040.00417.96
8.2.10.0080.00018.21
8.2.00.0040.00418.05
8.1.280.0100.00725.92
8.1.270.0060.00322.14
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0090.00021.16
8.1.230.0080.00419.22
8.1.220.0080.00017.79
8.1.210.0050.00318.77
8.1.200.0030.00617.48
8.1.190.0000.00817.35
8.1.180.0040.00518.10
8.1.170.0060.00318.71
8.1.160.0000.00719.10
8.1.150.0040.00418.91
8.1.140.0040.00419.57
8.1.130.0030.00318.82
8.1.120.0030.00317.50
8.1.110.0060.00317.43
8.1.100.0030.00717.54
8.1.90.0040.00417.52
8.1.80.0070.00017.50
8.1.70.0050.00217.65
8.1.60.0000.00917.76
8.1.50.0060.00317.72
8.1.40.0070.00417.55
8.1.30.0040.00417.88
8.1.20.0040.00417.80
8.1.10.0040.00417.64
8.1.00.0000.00817.59
8.0.300.0070.00020.04
8.0.290.0000.00816.88
8.0.280.0000.00718.46
8.0.270.0040.00417.19
8.0.260.0040.00416.96
8.0.250.0030.00317.12
8.0.240.0030.00316.97
8.0.230.0000.00717.10
8.0.220.0070.00017.00
8.0.210.0000.00717.02
8.0.200.0000.00617.09
8.0.190.0030.00617.02
8.0.180.0050.00517.11
8.0.170.0070.00017.08
8.0.160.0000.00716.92
8.0.150.0000.00817.02
8.0.140.0000.00717.05
8.0.130.0050.00313.39
8.0.120.0040.00417.07
8.0.110.0040.00416.86
8.0.100.0030.00517.07
8.0.90.0030.00516.86
8.0.80.0150.00617.05
8.0.70.0040.00416.88
8.0.60.0040.00416.89
8.0.50.0040.00417.07
8.0.30.0080.00817.15
8.0.20.0090.01217.41
8.0.10.0040.00417.14
8.0.00.0030.01316.84
7.4.330.0000.00515.55
7.4.320.0000.00716.81
7.4.300.0000.00816.61
7.4.290.0000.00916.71
7.4.280.0090.00016.76
7.4.270.0040.00416.72
7.4.260.0050.00316.66
7.4.250.0000.00716.58
7.4.240.0000.00716.71
7.4.230.0050.00216.62
7.4.220.0090.00916.80
7.4.210.0030.01016.83
7.4.200.0070.00016.70
7.4.160.0110.00616.74
7.4.150.0150.00317.40
7.4.140.0100.00917.86
7.4.130.0140.00716.67
7.4.120.0100.00916.75
7.4.110.0100.00716.89
7.4.100.0080.00816.82
7.4.90.0150.00416.76
7.4.80.0070.01019.39
7.4.70.0100.00616.67
7.4.60.0130.00316.71
7.4.50.0090.00216.53
7.4.40.0090.01216.57
7.4.30.0000.01716.59
7.4.00.0050.01215.20
7.3.330.0000.00513.23
7.3.320.0000.00513.27
7.3.310.0070.00016.48
7.3.300.0030.00316.47
7.3.290.0060.00916.41
7.3.280.0080.00916.45
7.3.270.0190.00317.40
7.3.260.0070.01016.78
7.3.250.0090.01216.60
7.3.240.0090.01016.68
7.3.230.0130.00316.47
7.3.210.0120.01216.75
7.3.200.0120.00616.77
7.3.190.0120.00416.59
7.3.180.0100.00616.75
7.3.170.0120.00316.52
7.3.160.0030.01316.59
7.3.120.0070.00915.09
7.3.110.0070.01015.11
7.3.100.0070.00715.11
7.3.90.0010.01314.84
7.3.80.0040.00915.05
7.3.70.0020.01015.08
7.3.60.0070.00915.11
7.3.50.0030.00714.99
7.3.40.0090.00614.96
7.3.30.0030.01014.96
7.3.20.0030.01016.85
7.3.10.0060.00716.76
7.3.00.0060.00616.88
7.2.330.0160.00316.85
7.2.320.0150.00316.94
7.2.310.0060.01016.79
7.2.300.0110.00516.85
7.2.290.0040.01416.97
7.2.250.0030.01615.21
7.2.240.0070.00915.30
7.2.230.0080.00515.01
7.2.220.0040.01015.04
7.2.210.0050.00915.22
7.2.200.0090.00615.19
7.2.190.0060.00515.26
7.2.180.0020.01215.08
7.2.170.0010.01215.18
7.2.160.0110.00215.17
7.2.150.0060.00516.88
7.2.140.0080.00817.05
7.2.130.0080.00517.11
7.2.120.0020.01217.08
7.2.110.0080.00617.20
7.2.100.0080.00617.02
7.2.90.0090.00917.24
7.2.80.0050.00717.10
7.2.70.0070.00917.18
7.2.60.0060.00817.05
7.2.50.0050.00917.18
7.2.40.0030.01117.22
7.2.30.0070.00617.08
7.2.20.0110.00617.20
7.2.10.0060.00817.00
7.2.00.0040.01117.21
7.1.330.0060.00915.90
7.1.320.0030.01215.98
7.1.310.0040.00615.91
7.1.300.0100.00615.98
7.1.290.0060.00716.00
7.1.280.0090.00715.82
7.1.270.0050.00716.01
7.1.260.0020.01115.85
7.1.250.0020.01016.08
7.1.240.0000.01415.83
7.1.230.0070.00415.85
7.1.220.0030.00515.91
7.1.210.0030.00915.75
7.1.200.0030.00815.67
7.1.190.0040.00815.91
7.1.180.0110.00316.09
7.1.170.0070.00716.10
7.1.160.0090.00315.65
7.1.150.0000.01115.95
7.1.140.0100.00715.86
7.1.130.0030.00715.91
7.1.120.0070.00315.68
7.1.110.0070.00715.93
7.1.100.0070.00717.08
7.1.90.0030.01315.97
7.1.80.0100.00715.69
7.1.70.0060.01016.50
7.1.60.0180.00925.38
7.1.50.0140.01625.58
7.1.40.0140.01725.45
7.1.30.0160.01725.29
7.1.20.0170.01325.45
7.1.10.0110.00516.41
7.1.00.0060.01216.37
7.0.330.0090.00615.75
7.0.320.0000.01315.44
7.0.310.0040.00815.64
7.0.300.0080.00515.25
7.0.290.0060.00615.37
7.0.280.0070.00415.64
7.0.270.0090.00615.48
7.0.260.0000.00815.50
7.0.250.0030.01315.54
7.0.240.0070.00715.55
7.0.230.0080.00415.48
7.0.220.0030.00615.66
7.0.210.0030.01015.73
7.0.200.0030.01416.19
7.0.190.0080.00916.25
7.0.180.0070.00916.01
7.0.170.0070.01116.06
7.0.160.0090.00715.84
7.0.150.0070.00716.03
7.0.140.0090.00616.11
7.0.130.0080.00916.22
7.0.120.0080.00816.07
7.0.110.0100.00716.03
7.0.100.0080.00716.03
7.0.90.0070.00615.77
7.0.80.0040.00915.98
7.0.70.0060.01116.14
7.0.60.0070.00916.05
7.0.50.0090.00716.11
7.0.40.0120.00715.41
7.0.30.0070.01115.34
7.0.20.0060.01115.46
7.0.10.0110.00515.30
7.0.00.0020.01415.28
5.6.400.0060.00614.39
5.6.390.0120.00014.62
5.6.380.0080.00414.32
5.6.370.0070.00714.20
5.6.360.0060.00914.55
5.6.350.0030.00914.10
5.6.340.0080.00414.38
5.6.330.0030.01014.49
5.6.320.0070.01014.55
5.6.310.0060.01014.55
5.6.300.0000.01414.61
5.6.290.0030.01014.57
5.6.280.0030.00614.22
5.6.270.0060.00614.24
5.6.260.0040.00414.18
5.6.250.0030.00614.55
5.6.240.0110.00414.28
5.6.230.0040.00714.38
5.6.220.0160.00014.42
5.6.210.0040.01114.40
5.6.200.0000.01214.56
5.6.190.0070.00714.37
5.6.180.0080.00314.64
5.6.170.0030.01014.43
5.6.160.0040.00414.30
5.6.150.0090.00014.25
5.6.140.0070.00414.48
5.6.130.0040.00814.33
5.6.120.0040.01514.49
5.6.110.0110.00714.17
5.6.100.0060.01014.26
5.6.90.0090.00614.29
5.6.80.0030.01014.44
5.6.70.0000.01214.32
5.6.60.0070.00414.54
5.6.50.0000.01414.48
5.6.40.0080.00014.36
5.6.30.0040.00414.54
5.6.20.0030.01014.20
5.6.10.0060.00614.35
5.6.00.0070.00714.18

preferences:
37.15 ms | 400 KiB | 5 Q