3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Maybe put this in a filter class? function removeQuotedValues($string) { $pattern = '#`.?`#'; // our regex pattern $string = preg_replace($pattern, '', $string); //remove `backtickedStrings` $string = str_replace(' ', '', $string); // remove unwanted whitespace $string = str_replace('(,', '(', $string); // remove unwanted comma $string = str_replace(',)', ')', $string); // remove unwanted comma $string = str_replace(',,', ',', $string); // remove unwanted comma return $string; } $string = '(`anurag`, 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.0100.00618.30
8.3.50.0110.00716.66
8.3.40.0120.00318.67
8.3.30.0110.00318.80
8.3.20.0040.00420.21
8.3.10.0000.00723.70
8.3.00.0040.00419.56
8.2.180.0180.00025.92
8.2.170.0090.00619.04
8.2.160.0090.00619.12
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0000.00819.33
8.2.120.0040.00426.35
8.2.110.0090.00319.21
8.2.100.0080.00417.84
8.2.90.0100.00019.17
8.2.80.0030.00517.97
8.2.70.0030.00617.88
8.2.60.0050.00317.75
8.2.50.0030.00517.88
8.2.40.0090.00517.63
8.2.30.0060.00319.21
8.2.20.0000.00717.98
8.2.10.0000.00818.11
8.2.00.0000.00718.10
8.1.280.0120.00925.92
8.1.270.0040.00424.66
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0040.00719.40
8.1.230.0080.00317.70
8.1.220.0030.00617.79
8.1.210.0050.00318.77
8.1.200.0060.00317.35
8.1.190.0060.00617.23
8.1.180.0060.00318.10
8.1.170.0080.00318.58
8.1.160.0070.00018.96
8.1.150.0040.00420.63
8.1.140.0020.00519.47
8.1.130.0030.00318.78
8.1.120.0000.00717.47
8.1.110.0000.00717.52
8.1.100.0100.00017.45
8.1.90.0040.00417.48
8.1.80.0030.00417.54
8.1.70.0030.00517.55
8.1.60.0030.00517.65
8.1.50.0060.00317.71
8.1.40.0070.00317.65
8.1.30.0040.00417.65
8.1.20.0070.00017.68
8.1.10.0080.00017.73
8.1.00.0060.00317.63
8.0.300.0030.00518.77
8.0.290.0020.00516.75
8.0.280.0070.00018.52
8.0.270.0030.00317.33
8.0.260.0070.00416.98
8.0.250.0040.00417.16
8.0.240.0000.00717.11
8.0.230.0000.00817.06
8.0.220.0000.00716.90
8.0.210.0040.00416.95
8.0.200.0030.00317.07
8.0.190.0050.00316.89
8.0.180.0000.00717.07
8.0.170.0040.00416.91
8.0.160.0040.00316.95
8.0.150.0050.00216.91
8.0.140.0040.00416.95
8.0.130.0000.00613.45
8.0.120.0040.00416.95
8.0.110.0000.00716.90
8.0.100.0040.00417.01
8.0.90.0000.00717.03
8.0.80.0090.01316.91
8.0.70.0040.00416.97
8.0.60.0000.00717.02
8.0.50.0040.00416.87
8.0.30.0110.00617.34
8.0.20.0100.01017.40
8.0.10.0040.00416.98
8.0.00.0100.00716.81
7.4.330.0000.00515.55
7.4.320.0000.00616.66
7.4.300.0030.00316.72
7.4.290.0060.00316.82
7.4.280.0030.00516.73
7.4.270.0040.00416.66
7.4.260.0030.00616.86
7.4.250.0000.00716.84
7.4.240.0040.00416.72
7.4.230.0030.00316.91
7.4.220.0060.01316.64
7.4.210.0080.00816.84
7.4.200.0000.00716.62
7.4.160.0090.00916.70
7.4.150.0200.00417.40
7.4.140.0090.01117.86
7.4.130.0160.00716.68
7.4.120.0070.01216.58
7.4.110.0070.01116.63
7.4.100.0030.01416.90
7.4.90.0070.01016.55
7.4.80.0060.01219.39
7.4.70.0090.00916.58
7.4.60.0100.01316.66
7.4.50.0110.00316.55
7.4.40.0110.01116.61
7.4.30.0060.01016.84
7.4.00.0060.00915.07
7.3.330.0030.00313.21
7.3.320.0030.00213.21
7.3.310.0000.00716.29
7.3.300.0090.00016.41
7.3.290.0090.00716.37
7.3.280.0080.00816.39
7.3.270.0150.00317.40
7.3.260.0100.00816.63
7.3.250.0110.00816.44
7.3.240.0100.00816.53
7.3.230.0110.00716.39
7.3.210.0110.00716.45
7.3.200.0150.00616.32
7.3.190.0100.01016.72
7.3.180.0120.00416.86
7.3.170.0060.01016.52
7.3.160.0060.00916.47
7.2.330.0160.00216.87
7.2.320.0110.00716.62
7.2.310.0100.00616.92
7.2.300.0080.00816.66
7.2.290.0060.01016.85
7.2.60.0100.00317.02
7.2.00.0030.01019.70
7.1.200.0030.00315.70
7.1.100.0000.01018.11
7.1.70.0100.01317.41
7.1.60.0190.01635.00
7.1.50.0290.00934.97
7.1.40.0370.01634.68
7.1.30.0320.02134.60
7.1.20.0310.01434.88
7.1.10.0120.01216.66
7.1.00.0110.01516.73
7.0.200.0080.01316.77
7.0.190.0140.00316.71
7.0.180.0100.01516.54
7.0.170.0160.00616.24
7.0.160.0030.01616.38
7.0.150.0140.00616.13
7.0.140.0040.01916.55
7.0.130.0070.01916.52
7.0.120.0030.01916.54
7.0.110.0110.01216.24
7.0.100.0080.01416.30
7.0.90.0090.01316.68
7.0.80.0110.01416.34
7.0.70.0100.01316.46
7.0.60.0160.00916.40
7.0.50.0210.00316.40
7.0.40.0150.00716.75
7.0.30.0060.01616.69
7.0.20.0080.01516.50
7.0.10.0170.00516.47
7.0.00.0100.01116.60

preferences:
47.03 ms | 401 KiB | 5 Q