3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '(`anurag`, 1,2), (1,2,3), `dm0c60544`,(2 ,3 ,3) '; $pattern = '#[`a-zA-Z]+,#'; // our regex pattern $string = preg_replace($pattern, '', $string); //replace backticked text and the following comma $string = str_replace(' ', '', $string); // remove unwanted whitespace

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.0090.00916.75
8.3.40.0110.00318.84
8.3.30.0070.00718.84
8.3.20.0040.00420.29
8.3.10.0080.00023.66
8.3.00.0040.00419.56
8.2.180.0110.00718.63
8.2.170.0000.01422.96
8.2.160.0040.01119.08
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0080.00020.89
8.2.120.0080.00026.35
8.2.110.0030.00620.43
8.2.100.0070.00418.06
8.2.90.0040.00418.16
8.2.80.0040.00417.97
8.2.70.0060.00317.92
8.2.60.0040.00418.03
8.2.50.0040.00418.10
8.2.40.0060.00320.64
8.2.30.0030.00520.92
8.2.20.0050.00317.93
8.2.10.0050.00318.09
8.2.00.0000.00718.07
8.1.280.0040.01125.92
8.1.270.0070.00022.23
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0030.00620.64
8.1.230.0070.00420.99
8.1.220.0040.00417.74
8.1.210.0000.00918.79
8.1.200.0080.00317.48
8.1.190.0060.00317.22
8.1.180.0040.00418.10
8.1.170.0000.00918.67
8.1.160.0000.00718.91
8.1.150.0080.00018.89
8.1.140.0070.00019.49
8.1.130.0070.00018.76
8.1.120.0040.00317.42
8.1.110.0040.00417.49
8.1.100.0000.00717.56
8.1.90.0060.00317.43
8.1.80.0020.00517.56
8.1.70.0000.00717.60
8.1.60.0050.00317.59
8.1.50.0070.00017.59
8.1.40.0030.00817.47
8.1.30.0030.00617.64
8.1.20.0000.00817.73
8.1.10.0040.00417.56
8.1.00.0040.00417.42
8.0.300.0050.00219.77
8.0.290.0080.00016.75
8.0.280.0040.00418.47
8.0.270.0070.00016.85
8.0.260.0030.00316.89
8.0.250.0040.00417.06
8.0.240.0030.00517.04
8.0.230.0040.00417.08
8.0.220.0030.00317.00
8.0.210.0040.00416.85
8.0.200.0060.00017.02
8.0.190.0040.00416.95
8.0.180.0000.00716.88
8.0.170.0070.00017.02
8.0.160.0040.00417.01
8.0.150.0050.00317.02
8.0.140.0020.00516.91
8.0.130.0030.00313.39
8.0.120.0040.00416.98
8.0.110.0080.00016.84
8.0.100.0000.00716.98
8.0.90.0000.00716.87
8.0.80.0100.01316.94
8.0.70.0000.00816.98
8.0.60.0000.00816.97
8.0.50.0050.00217.04
8.0.30.0080.01117.26
8.0.20.0110.00917.40
8.0.10.0050.00216.98
8.0.00.0070.01017.03
7.4.330.0000.00515.55
7.4.320.0030.00316.72
7.4.300.0000.00716.64
7.4.290.0060.00616.73
7.4.280.0070.00016.63
7.4.270.0030.00316.77
7.4.260.0040.00416.56
7.4.250.0070.00016.62
7.4.240.0000.00716.78
7.4.230.0000.00816.63
7.4.220.0090.01816.70
7.4.210.0040.01116.73
7.4.200.0040.00416.85
7.4.160.0080.00816.79
7.4.150.0190.00317.40
7.4.140.0090.00817.86
7.4.130.0100.01416.71
7.4.120.0070.01016.78
7.4.110.0070.01116.41
7.4.100.0120.01216.65
7.4.90.0060.00916.55
7.4.80.0080.00819.39
7.4.70.0060.01016.71
7.4.60.0060.00916.83
7.4.50.0030.01016.59
7.4.40.0100.00716.70
7.4.30.0120.01216.44
7.4.00.0110.00614.93
7.3.330.0000.00613.09
7.3.320.0000.00713.00
7.3.310.0000.00716.17
7.3.300.0030.00316.29
7.3.290.0080.00616.26
7.3.280.0090.00716.26
7.3.270.0130.00717.40
7.3.260.0140.00716.65
7.3.250.0100.00816.43
7.3.240.0090.00916.59
7.3.230.0090.00916.61
7.3.210.0110.00616.65
7.3.200.0140.00616.30
7.3.190.0180.00316.43
7.3.180.0100.00616.59
7.3.170.0060.01316.55
7.3.160.0080.00816.77
7.3.120.0030.01314.79
7.3.110.0070.01114.38
7.3.100.0070.00714.78
7.3.90.0100.00014.89
7.3.80.0060.00614.95
7.3.70.0030.01214.89
7.3.60.0130.00314.73
7.3.50.0050.00514.82
7.3.40.0060.00614.64
7.3.30.0000.01514.93
7.3.20.0070.00716.43
7.3.10.0090.00316.95
7.3.00.0030.00616.67
7.2.330.0060.01116.55
7.2.320.0120.00816.65
7.2.310.0070.01016.43
7.2.300.0030.01316.53
7.2.290.0230.00016.58
7.2.250.0030.01614.84
7.2.240.0110.00715.18
7.2.230.0110.00415.09
7.2.220.0000.01315.19
7.2.210.0100.00614.94
7.2.200.0070.01015.21
7.2.190.0040.00415.22
7.2.180.0060.00615.11
7.2.170.0070.00715.13
7.2.60.0200.00916.84
7.2.00.0030.01419.47
7.1.330.0000.01316.04
7.1.320.0030.01015.93
7.1.310.0030.01016.11
7.1.300.0080.00315.87
7.1.290.0040.00815.89
7.1.280.0140.00015.61
7.1.270.0100.00715.75
7.1.260.0080.00615.86
7.1.200.0140.00015.77
7.1.100.0040.00418.24
7.1.70.0120.01217.26
7.1.60.0230.03135.34
7.1.50.0320.01734.86
7.1.40.0280.01734.59
7.1.30.0350.00934.69
7.1.20.0380.01134.53
7.1.10.0100.01316.63
7.1.00.0110.01816.77
7.0.200.0140.00916.86
7.0.190.0110.01216.78
7.0.180.0120.01016.50
7.0.170.0030.01716.27
7.0.160.0190.00816.29
7.0.150.0130.01116.26
7.0.140.0030.02016.54
7.0.130.0190.00616.79
7.0.120.0100.01416.65
7.0.110.0120.01216.38
7.0.100.0100.01216.53
7.0.90.0030.00816.43
7.0.80.0080.01316.51
7.0.70.0080.01616.33
7.0.60.0000.01716.38
7.0.50.0120.00616.44
7.0.40.0110.00816.78
7.0.30.0030.01716.74
7.0.20.0130.01016.60
7.0.10.0090.01316.45
7.0.00.0100.01116.48

preferences:
50.53 ms | 401 KiB | 5 Q