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.0090.00918.68
8.3.50.0160.00616.74
8.3.40.0070.00718.79
8.3.30.0080.00618.91
8.3.20.0080.00020.24
8.3.10.0030.00623.61
8.3.00.0050.00519.38
8.2.180.0070.01316.88
8.2.170.0090.00922.96
8.2.160.0070.00719.04
8.2.150.0060.00324.18
8.2.140.0080.00024.66
8.2.130.0100.00726.16
8.2.120.0120.00321.09
8.2.110.0060.00319.21
8.2.100.0040.00717.91
8.2.90.0000.00819.18
8.2.80.0030.00617.97
8.2.70.0040.00717.75
8.2.60.0040.00417.68
8.2.50.0040.00418.10
8.2.40.0000.00720.32
8.2.30.0030.00619.32
8.2.20.0030.00517.96
8.2.10.0030.00518.15
8.2.00.0000.00718.20
8.1.280.0140.00425.92
8.1.270.0050.00222.18
8.1.260.0090.00026.35
8.1.250.0070.00028.09
8.1.240.0060.00322.14
8.1.230.0120.00019.09
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0090.00017.38
8.1.190.0030.00617.47
8.1.180.0040.00418.10
8.1.170.0040.00418.76
8.1.160.0050.00319.04
8.1.150.0000.00718.82
8.1.140.0030.00619.56
8.1.130.0000.00818.87
8.1.120.0040.00317.58
8.1.110.0090.00017.46
8.1.100.0060.00617.57
8.1.90.0040.00417.59
8.1.80.0030.00417.63
8.1.70.0070.00017.64
8.1.60.0000.00717.62
8.1.50.0040.00417.60
8.1.40.0040.00717.70
8.1.30.0030.00517.79
8.1.20.0000.00817.70
8.1.10.0040.00417.69
8.1.00.0040.00417.59
8.0.300.0070.00018.77
8.0.290.0030.00616.75
8.0.280.0040.00418.38
8.0.270.0040.00417.39
8.0.260.0000.00716.96
8.0.250.0030.00317.15
8.0.240.0040.00417.07
8.0.230.0040.00417.09
8.0.220.0040.00417.04
8.0.210.0030.00317.01
8.0.200.0060.00017.10
8.0.190.0070.00317.03
8.0.180.0070.00016.96
8.0.170.0040.00417.08
8.0.160.0000.00717.14
8.0.150.0040.00416.85
8.0.140.0040.00416.91
8.0.130.0000.00613.44
8.0.120.0000.00717.04
8.0.110.0040.00416.84
8.0.100.0000.00716.95
8.0.90.0000.00717.16
8.0.80.0000.01517.02
8.0.70.0000.00717.09
8.0.60.0020.00516.94
8.0.50.0040.00417.15
8.0.30.0100.01017.13
8.0.20.0110.01117.45
8.0.10.0050.00217.21
8.0.00.0030.01317.06
7.4.330.0050.00015.55
7.4.320.0030.00316.82
7.4.300.0030.00316.80
7.4.290.0070.00316.82
7.4.280.0080.00016.80
7.4.270.0030.00316.73
7.4.260.0000.00716.79
7.4.250.0060.00316.68
7.4.240.0000.00716.75
7.4.230.0040.00416.57
7.4.220.0110.00716.68
7.4.210.0090.00616.88
7.4.200.0000.00716.88
7.4.160.0100.00516.69
7.4.150.0100.00717.40
7.4.140.0120.00517.86
7.4.130.0070.01416.90
7.4.120.0110.00916.73
7.4.110.0070.01116.73
7.4.100.0120.00616.64
7.4.90.0100.00716.72
7.4.80.0090.01319.39
7.4.70.0170.00016.70
7.4.60.0120.00316.71
7.4.50.0060.00916.65
7.4.40.0050.01016.53
7.4.30.0100.01316.91
7.4.00.0060.00815.23
7.3.330.0000.00513.46
7.3.320.0000.00513.32
7.3.310.0000.00716.35
7.3.300.0000.00716.32
7.3.290.0070.00716.55
7.3.280.0100.00716.44
7.3.270.0130.00617.40
7.3.260.0090.01116.77
7.3.250.0060.01016.69
7.3.240.0050.01216.69
7.3.230.0090.01316.73
7.3.210.0090.00916.85
7.3.200.0110.01116.70
7.3.190.0030.01516.73
7.3.180.0060.01016.54
7.3.170.0090.00616.53
7.3.160.0110.00616.80
7.3.120.0040.01414.93
7.3.110.0060.00914.57
7.3.100.0040.01115.05
7.3.90.0060.01015.07
7.3.80.0000.01514.92
7.3.70.0100.00715.10
7.3.60.0040.01115.17
7.3.50.0090.00615.05
7.3.40.0120.00315.04
7.3.30.0040.01114.83
7.3.20.0030.01316.93
7.3.10.0030.00616.65
7.3.00.0060.00616.89
7.2.330.0070.01116.85
7.2.320.0040.01316.87
7.2.310.0070.01016.82
7.2.300.0160.00016.78
7.2.290.0090.00916.87
7.2.240.0040.00815.05
7.2.230.0040.00815.46
7.2.220.0070.01015.11
7.2.210.0130.00015.26
7.2.200.0060.00915.32
7.2.190.0040.01115.21
7.2.180.0130.00315.19
7.2.170.0040.01515.15
7.2.160.0060.00915.05
7.2.150.0040.01217.09
7.2.140.0150.00017.18
7.2.130.0040.01116.88
7.2.120.0050.00517.06
7.2.110.0030.01017.13
7.2.100.0100.00717.15
7.2.90.0070.01016.80
7.2.80.0070.01117.17
7.2.70.0030.01017.06
7.2.60.0120.00517.11
7.2.50.0110.00317.00
7.2.40.0060.01016.96
7.2.30.0140.00417.20
7.2.20.0030.00717.25
7.2.10.0090.00617.21
7.2.00.0030.01317.08
7.1.330.0080.00815.80
7.1.320.0030.01015.89
7.1.310.0030.01016.04
7.1.300.0030.00715.83
7.1.290.0070.00416.18
7.1.280.0060.00315.66
7.1.270.0030.00815.89
7.1.260.0030.00915.92
7.1.250.0110.00416.02
7.1.200.0040.01116.08
7.1.70.0080.01217.07
7.1.60.0360.01135.27
7.1.50.0300.00635.03
7.1.40.0410.00234.54
7.1.30.0230.02134.68
7.1.20.0330.01234.81
7.1.10.0110.01616.62
7.1.00.0160.00916.63
7.0.200.0120.01016.98
7.0.190.0030.01716.82
7.0.180.0060.01316.44
7.0.170.0120.00816.20
7.0.160.0100.01316.48
7.0.150.0120.01116.61
7.0.140.0070.01616.47
7.0.130.0020.02016.59
7.0.120.0070.01616.57
7.0.110.0140.00816.31
7.0.100.0120.01116.68
7.0.90.0100.01016.56
7.0.80.0130.01016.45
7.0.70.0070.01616.50
7.0.60.0120.00916.15
7.0.50.0090.01516.77
7.0.40.0090.01416.54
7.0.30.0050.01616.64
7.0.20.0120.00916.78
7.0.10.0070.01416.77
7.0.00.0100.00616.73

preferences:
47.5 ms | 400 KiB | 5 Q