3v4l.org

run code in 300+ PHP versions simultaneously
<?php $etag = '"123-456\"789"'; $regex = '~(?:^|[\h,]+)(?:W/)?(")?(?(1)((?:[^"\\\\]|\\\\.)*(*MARK:Q))(?:"|\\\\|$)|([^,]*(*MARK:T)))~'; \preg_match_all($regex, $etag, $matches, \PREG_SET_ORDER); print_r($matches); echo \preg_replace('/\\\\(.)/', '$1', $matches[0][2]); var_dump(strpos($etag, '\\'));

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.01318.43
8.3.50.0150.00416.43
8.3.40.0120.00918.84
8.3.30.0070.00719.02
8.3.20.0050.00319.12
8.3.10.0000.00823.52
8.3.00.0060.00323.61
8.2.180.0130.00616.63
8.2.170.0060.00922.96
8.2.160.0110.00319.14
8.2.150.0000.00824.18
8.2.140.0000.00724.66
8.2.130.0070.00020.52
8.2.120.0080.00026.35
8.2.110.0040.00422.30
8.2.100.0090.00318.03
8.2.90.0040.00418.00
8.2.80.0000.00817.97
8.2.70.0040.00418.03
8.2.60.0040.00417.93
8.2.50.0000.00818.10
8.2.40.0000.00819.29
8.2.30.0000.00719.37
8.2.20.0080.00018.16
8.2.10.0070.00019.53
8.2.00.0000.00719.28
8.1.280.0000.01425.92
8.1.270.0030.00620.37
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0000.00823.67
8.1.230.0070.00419.01
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0030.00617.48
8.1.190.0000.00917.35
8.1.180.0030.00618.10
8.1.170.0040.00418.84
8.1.160.0030.00518.71
8.1.150.0050.00218.82
8.1.140.0040.00419.60
8.1.130.0030.00319.05
8.1.120.0040.00417.61
8.1.110.0080.00017.57
8.1.100.0070.00017.45
8.1.90.0000.00717.45
8.1.80.0000.00717.61
8.1.70.0000.00717.52
8.1.60.0030.00517.57
8.1.50.0000.00817.51
8.1.40.0030.00517.59
8.1.30.0060.00317.80
8.1.20.0040.00417.69
8.1.10.0000.00917.78
8.1.00.0000.00917.63
8.0.300.0000.00718.77
8.0.290.0080.00016.75
8.0.280.0050.00218.47
8.0.270.0040.00417.29
8.0.260.0080.00417.29
8.0.250.0000.00717.05
8.0.240.0050.00317.14
8.0.230.0030.00517.02
8.0.220.0000.00716.86
8.0.210.0050.00217.01
8.0.200.0040.00516.92
8.0.190.0040.00417.01
8.0.180.0050.00316.90
8.0.170.0060.00316.96
8.0.160.0000.00817.07
8.0.150.0000.00717.00
8.0.140.0040.00416.91
8.0.130.0030.00313.37
8.0.120.0070.00017.00
8.0.110.0040.00416.91
8.0.100.0080.00016.94
8.0.90.0000.00716.84
8.0.80.0090.01116.97
8.0.70.0050.00216.86
8.0.60.0070.00016.79
8.0.50.0000.00716.87
8.0.30.0100.00817.21
8.0.20.0100.01017.40
8.0.10.0070.00017.23
8.0.00.0110.00716.74
7.4.330.0020.00215.55
7.4.320.0060.00316.80
7.4.300.0000.00616.65
7.4.290.0030.00316.55
7.4.280.0040.00416.67
7.4.270.0030.00316.59
7.4.260.0040.00416.68
7.4.250.0000.00716.61
7.4.240.0030.00316.57
7.4.230.0030.00516.65
7.4.220.0040.00416.52
7.4.210.0130.00416.69
7.4.200.0040.00416.57
7.4.160.0070.01016.70
7.4.140.0090.00917.86
7.4.130.0090.00916.78
7.4.120.0130.00716.73
7.4.110.0000.01616.73
7.4.100.0100.01416.63
7.4.90.0090.00916.66
7.4.80.0070.01719.39
7.4.70.0150.00316.88
7.4.60.0090.00616.62
7.4.50.0080.01116.46
7.4.40.0110.00616.70
7.4.00.0060.00615.18
7.3.330.0050.00013.08
7.3.320.0000.00613.23
7.3.310.0030.00316.20
7.3.300.0030.00316.34
7.3.290.0000.00716.42
7.3.280.0080.00916.40
7.3.260.0120.00816.62
7.3.240.0070.01216.52
7.3.230.0090.01516.43
7.3.210.0070.01116.59
7.3.200.0090.01516.35
7.3.190.0100.00716.63
7.3.180.0090.00916.66
7.3.170.0130.00616.43
7.3.160.0040.01416.61
7.2.330.0180.00016.82
7.2.320.0040.01316.84
7.2.310.0090.01316.79
7.2.300.0090.00916.76
7.2.290.0100.01316.70
7.2.110.0150.00916.83
7.2.80.0190.00514.40
7.2.70.0910.00314.81
7.2.60.0850.00714.90
7.2.50.1090.01314.41
7.2.40.0730.00714.94
7.2.30.0700.01015.05
7.2.20.0750.00614.88
7.2.10.0990.00314.74
7.2.00.0730.01014.78
7.1.200.0080.00415.69
7.1.190.1020.00913.88
7.1.180.1280.00713.68
7.1.170.1070.00713.75
7.1.160.0160.01613.67
7.1.150.0420.00013.70
7.1.140.0720.00713.90
7.1.130.0710.00713.85
7.1.120.0830.00313.77
7.1.110.0800.00014.18
7.1.100.0880.01014.20
7.1.90.1390.00713.75
7.1.80.1050.00313.98
7.1.70.1190.00613.65
7.1.60.1210.00332.04
7.1.50.2140.01031.93
7.1.40.2010.01331.96
7.1.30.1770.01331.92
7.1.20.1630.01631.88
7.1.10.1530.00313.81
7.1.00.0830.00614.03

preferences:
60.68 ms | 400 KiB | 5 Q