3v4l.org

run code in 300+ PHP versions simultaneously
<?php function removeQuotedValues($string) { $pattern = '#``(.*?)`#'; $string = preg_replace($pattern, '', $string); $replace = array(' ' => '', '(,' => '(', ',)' => ')', ',,' => ','); foreach ($replace as $old => $new) { $string = str_replace($old, $new, $string); } return $string; } $string = '(`g3tR1d0fM3`, 1,2), (1,2,3, `14ls0n33dr3m0v1ng`),(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.0120.00618.31
8.3.50.0170.00716.61
8.3.40.0140.00418.86
8.3.30.0070.00718.79
8.3.20.0050.00320.21
8.3.10.0030.00723.69
8.3.00.0030.00519.54
8.2.180.0140.00716.48
8.2.170.0090.00622.96
8.2.160.0140.00019.03
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0040.00419.39
8.2.120.0000.00726.35
8.2.110.0180.00020.39
8.2.100.0090.00317.91
8.2.90.0000.00819.21
8.2.80.0040.00417.97
8.2.70.0050.00317.75
8.2.60.0000.00718.05
8.2.50.0000.00818.10
8.2.40.0030.00620.60
8.2.30.0040.00419.19
8.2.20.0000.00718.09
8.2.10.0000.00718.14
8.2.00.0040.00418.18
8.1.280.0110.00725.92
8.1.270.0000.00722.23
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00323.88
8.1.230.0110.00020.30
8.1.220.0050.00317.78
8.1.210.0030.00618.77
8.1.200.0040.00417.35
8.1.190.0040.00417.35
8.1.180.0040.00418.10
8.1.170.0040.00418.66
8.1.160.0000.00819.10
8.1.150.0040.00418.79
8.1.140.0090.00019.60
8.1.130.0040.00418.96
8.1.120.0070.00017.68
8.1.110.0040.00417.45
8.1.100.0040.00717.52
8.1.90.0080.00017.60
8.1.80.0030.00517.55
8.1.70.0000.00717.56
8.1.60.0050.00317.70
8.1.50.0030.00517.64
8.1.40.0030.00617.52
8.1.30.0080.00017.76
8.1.20.0000.00717.83
8.1.10.0000.00817.57
8.1.00.0040.00417.52
8.0.300.0050.00218.77
8.0.290.0000.00716.88
8.0.280.0030.00318.38
8.0.270.0000.00717.27
8.0.260.0000.00716.89
8.0.250.0000.00616.96
8.0.240.0030.00317.14
8.0.230.0000.00717.10
8.0.220.0030.00317.07
8.0.210.0000.00717.08
8.0.200.0030.00317.10
8.0.190.0060.00317.08
8.0.180.0000.00717.07
8.0.170.0070.00017.04
8.0.160.0040.00417.03
8.0.150.0080.00016.97
8.0.140.0030.00517.03
8.0.130.0000.00713.39
8.0.120.0000.00717.00
8.0.110.0040.00417.05
8.0.100.0040.00416.98
8.0.90.0080.00017.06
8.0.80.0090.01217.02
8.0.70.0080.00017.00
8.0.60.0050.00216.95
8.0.50.0000.00816.92
8.0.30.0110.00817.31
8.0.20.0100.00917.44
8.0.10.0040.00417.04
8.0.00.0060.00917.15
7.4.330.0050.00015.55
7.4.320.0060.00016.82
7.4.300.0030.00316.57
7.4.290.0030.00516.68
7.4.280.0040.00416.70
7.4.270.0000.00716.70
7.4.260.0000.00716.68
7.4.250.0040.00416.68
7.4.240.0070.00016.83
7.4.230.0050.00216.62
7.4.220.0060.01116.74
7.4.210.0030.01016.82
7.4.200.0040.00416.52
7.4.160.0110.00816.80
7.4.150.0090.00917.40
7.4.140.0150.00417.86
7.4.130.0040.01516.68
7.4.120.0130.00916.73
7.4.110.0060.01016.68
7.4.100.0120.00616.54
7.4.90.0070.01016.77
7.4.80.0130.00319.39
7.4.70.0110.00716.71
7.4.60.0130.00316.71
7.4.50.0060.01016.57
7.4.40.0060.01016.46
7.4.30.0090.00916.58
7.4.10.0130.00616.71
7.4.00.0080.00815.87
7.3.330.0020.00213.37
7.3.320.0000.00513.31
7.3.310.0070.00016.47
7.3.300.0000.00716.46
7.3.290.0090.00616.44
7.3.280.0090.00916.45
7.3.270.0110.00717.40
7.3.260.0060.01016.67
7.3.250.0120.00816.63
7.3.240.0090.01316.67
7.3.230.0070.01016.81
7.3.210.0100.01116.73
7.3.200.0050.01116.69
7.3.190.0080.00816.59
7.3.180.0130.00316.75
7.3.170.0030.01316.71
7.3.160.0140.00316.71
7.3.130.0090.00916.48
7.3.120.0070.01016.48
7.3.110.0060.00916.42
7.3.100.0110.00416.24
7.3.90.0030.01016.47
7.3.80.0100.00716.37
7.3.70.0060.00616.45
7.3.60.0130.00316.69
7.3.50.0080.00416.66
7.3.40.0030.01316.42
7.3.30.0070.00416.46
7.3.20.0070.00718.41
7.3.10.0040.00718.36
7.3.00.0070.00717.51
7.2.330.0130.00716.82
7.2.320.0130.00316.93
7.2.310.0060.00916.84
7.2.300.0060.00916.85
7.2.290.0040.01416.65
7.2.260.0060.01016.77
7.2.250.0110.01016.80
7.2.240.0000.01616.65
7.2.230.0090.00616.91
7.2.220.0140.00716.78
7.2.210.0060.01316.74
7.2.200.0000.01016.80
7.2.190.0070.01016.85
7.2.180.0030.01016.75
7.2.170.0060.00616.69
7.2.160.0080.00416.79
7.2.150.0100.00618.48
7.2.140.0030.00918.57
7.2.130.0090.00517.81
7.2.120.0100.00317.83
7.2.110.0080.00817.87
7.2.100.0060.00817.90
7.2.90.0050.00817.75
7.2.80.0070.00717.56
7.2.70.0120.00617.75
7.2.60.0060.00717.64
7.2.50.0090.00917.88
7.2.40.0070.01217.90
7.2.30.0090.00517.96
7.2.20.0070.00517.83
7.2.10.0050.01017.83
7.2.00.0080.00618.39
7.1.330.0070.00717.42
7.1.320.0030.01317.57
7.1.310.0000.01317.37
7.1.300.0130.00017.54
7.1.290.0080.00817.52
7.1.280.0100.00317.71
7.1.270.0130.00017.46
7.1.260.0070.00717.45
7.1.250.0050.00816.77
7.1.240.0040.00816.83
7.1.230.0050.01116.71
7.1.220.0060.01016.63
7.1.210.0090.00516.82
7.1.200.0050.00516.44
7.1.190.0100.00516.67
7.1.180.0040.00816.77
7.1.170.0050.00916.69
7.1.160.0080.00316.66
7.1.150.0030.01016.77
7.1.140.0010.01116.70
7.1.130.0070.01016.68
7.1.120.0060.00516.79
7.1.110.0070.00616.69
7.1.100.0040.00717.24
7.1.90.0050.01116.58
7.1.80.0030.01016.69
7.1.70.0050.00816.80
7.1.60.0150.01022.76
7.1.50.0170.00922.78
7.1.40.0100.01122.59
7.1.30.0180.00722.72
7.1.20.0140.00922.74
7.1.10.0070.00916.68
7.1.00.0090.00816.78
7.0.330.0070.00316.31
7.0.320.0050.00816.16
7.0.310.0070.00516.11
7.0.300.0050.01016.33
7.0.290.0040.00816.34
7.0.280.0050.00816.23
7.0.270.0070.00516.44
7.0.260.0060.00716.48
7.0.250.0030.00816.51
7.0.240.0080.00716.43
7.0.230.0060.00816.33
7.0.220.0080.00416.55
7.0.210.0050.00916.50
7.0.200.0070.01016.54
7.0.190.0050.01016.63
7.0.180.0070.00716.39
7.0.170.0040.01216.40
7.0.160.0070.01316.48
7.0.150.0050.01316.35
7.0.140.0100.00716.43
7.0.130.0100.00916.49
7.0.120.0070.01016.53
7.0.110.0050.01016.45
7.0.100.0090.00816.34
7.0.90.0110.00616.45
7.0.80.0100.00616.38
7.0.70.0080.00916.43
7.0.60.0050.01116.41
7.0.50.0090.00716.36
7.0.40.0090.00915.09
7.0.30.0080.01015.29
7.0.20.0070.01015.19
7.0.10.0050.00915.05
7.0.00.0070.00714.98
5.6.400.0030.01015.58
5.6.390.0070.00716.13
5.6.380.0050.00715.15
5.6.370.0060.00915.58
5.6.360.0110.01116.04
5.6.350.0000.01116.02
5.6.340.0040.01116.16
5.6.330.0030.00915.64
5.6.320.0000.00915.83
5.6.310.0070.00716.02
5.6.300.0070.01115.85
5.6.290.0110.00315.48
5.6.280.0070.01015.84
5.6.270.0000.00915.67
5.6.260.0040.01115.95
5.6.250.0040.00815.96
5.6.240.0040.00816.05
5.6.230.0090.00916.10
5.6.220.0120.00615.90
5.6.210.0000.00915.98
5.6.200.0070.00716.04
5.6.190.0080.00815.86
5.6.180.0030.01015.73
5.6.170.0080.00815.86
5.6.160.0040.01115.82
5.6.150.0070.00715.84
5.6.140.0100.00616.01
5.6.130.0080.00315.98
5.6.120.0030.00716.01
5.6.110.0030.00615.71
5.6.100.0120.00315.99
5.6.90.0000.01416.02
5.6.80.0060.00615.83
5.6.70.0060.00315.94
5.6.60.0090.00415.98
5.6.50.0060.00916.17
5.6.40.0060.00616.00
5.6.30.0070.01315.87
5.6.20.0000.01515.74
5.6.10.0080.00415.90
5.6.00.0050.00515.95

preferences:
43.27 ms | 401 KiB | 5 Q