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[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.0070.01418.43
8.3.50.0060.01016.52
8.3.40.0000.01519.02
8.3.30.0080.00818.65
8.3.20.0000.00818.98
8.3.10.0030.00523.52
8.3.00.0040.00423.52
8.2.180.0120.00916.88
8.2.170.0110.00722.96
8.2.160.0090.00619.25
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0080.00020.35
8.2.120.0000.00826.35
8.2.110.0060.00322.38
8.2.100.0060.00619.65
8.2.90.0000.00817.88
8.2.80.0000.00818.00
8.2.70.0050.00517.93
8.2.60.0000.00817.89
8.2.50.0040.00418.10
8.2.40.0030.00619.30
8.2.30.0000.00719.45
8.2.20.0040.00418.23
8.2.10.0070.00019.46
8.2.00.0070.00019.31
8.1.280.0120.00325.92
8.1.270.0000.00923.99
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0040.00424.02
8.1.230.0040.00719.17
8.1.220.0060.00317.74
8.1.210.0030.00618.77
8.1.200.0000.00817.35
8.1.190.0040.00417.23
8.1.180.0060.00318.10
8.1.170.0050.00318.84
8.1.160.0040.00418.74
8.1.150.0000.00818.78
8.1.140.0060.00319.61
8.1.130.0030.00318.96
8.1.120.0000.00717.62
8.1.110.0080.00017.54
8.1.100.0000.00717.44
8.1.90.0040.00417.47
8.1.80.0000.00817.45
8.1.70.0070.00017.57
8.1.60.0000.00817.73
8.1.50.0040.00417.61
8.1.40.0040.00417.51
8.1.30.0000.01117.63
8.1.20.0000.00817.79
8.1.10.0040.00417.76
8.1.00.0040.00417.66
8.0.300.0070.00018.77
8.0.290.0090.00016.75
8.0.280.0000.00718.52
8.0.270.0000.00717.25
8.0.260.0040.00717.28
8.0.250.0070.00017.19
8.0.240.0070.00017.08
8.0.230.0030.00317.06
8.0.220.0000.00717.01
8.0.210.0040.00416.96
8.0.200.0050.00517.13
8.0.190.0040.00417.00
8.0.180.0000.00816.94
8.0.170.0090.00017.09
8.0.160.0030.00516.94
8.0.150.0040.00416.98
8.0.140.0040.00416.99
8.0.130.0030.00313.45
8.0.120.0090.00016.93
8.0.110.0040.00417.07
8.0.100.0050.00216.94
8.0.90.0040.00417.09
8.0.80.0110.01017.07
8.0.70.0080.00016.86
8.0.60.0070.00016.92
8.0.50.0000.00817.04
8.0.30.0070.01117.30
8.0.20.0100.01617.40
8.0.10.0000.00717.14
8.0.00.0060.01316.85
7.4.330.0000.00515.55
7.4.320.0030.00616.75
7.4.300.0000.00616.67
7.4.290.0000.00716.66
7.4.280.0040.00416.76
7.4.270.0030.00316.66
7.4.260.0030.00316.68
7.4.250.0040.00416.71
7.4.240.0070.00016.81
7.4.230.0070.00016.58
7.4.220.0040.00416.53
7.4.210.0080.01016.85
7.4.200.0050.00216.58
7.4.160.0070.00916.80
7.4.140.0110.00817.86
7.4.130.0080.01116.76
7.4.120.0100.01016.63
7.4.110.0100.00616.73
7.4.100.0110.00716.66
7.4.90.0100.01016.71
7.4.80.0150.00419.39
7.4.70.0160.00616.71
7.4.60.0040.01116.73
7.4.50.0080.00616.50
7.4.40.0140.00616.69
7.4.00.0060.00915.18
7.3.330.0050.00013.30
7.3.320.0000.00513.33
7.3.310.0030.00616.41
7.3.300.0070.00016.33
7.3.290.0000.00716.44
7.3.280.0080.00716.34
7.3.260.0090.01016.56
7.3.240.0130.00816.54
7.3.230.0110.00616.71
7.3.210.0110.00716.60
7.3.200.0120.00616.65
7.3.190.0120.00316.65
7.3.180.0100.00716.53
7.3.170.0040.01216.55
7.3.160.0090.00916.65
7.3.10.0000.00816.39
7.3.00.0100.00316.66
7.2.330.0090.00916.84
7.2.320.0000.01616.87
7.2.310.0110.00816.74
7.2.300.0030.01916.60
7.2.290.0150.00916.57
7.2.130.0030.00816.93
7.2.120.0130.00316.52
7.2.110.0510.00716.59
7.2.100.0110.00817.10
7.2.90.0120.00316.99
7.2.80.0180.00815.89
7.2.70.0430.01015.91
7.2.60.0440.00815.93
7.2.50.0370.01215.84
7.2.40.0570.00915.79
7.2.30.0340.00915.73
7.2.20.0300.00815.90
7.2.10.0270.01115.96
7.2.00.0410.00916.07
7.1.250.0110.00415.84
7.1.200.0070.00415.80
7.1.190.0880.00713.79
7.1.180.0750.00313.70
7.1.170.0650.00613.71
7.1.160.0290.00913.34
7.1.150.0300.01013.82
7.1.140.1150.00314.14
7.1.130.0230.01013.71
7.1.120.0130.00713.83
7.1.110.0190.01613.84
7.1.100.0170.01214.21
7.1.90.1480.00313.61
7.1.80.0310.00613.72
7.1.70.1110.00713.77
7.1.60.1650.02032.12
7.1.50.1880.01331.63
7.1.40.2280.01332.02
7.1.30.1760.01031.90
7.1.20.1560.00331.92
7.1.10.1270.01013.67
7.1.00.0840.00713.74

preferences:
43.17 ms | 400 KiB | 5 Q