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); var_dump(strpos('123\'123', '\\'));

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.0060.01218.43
8.3.50.0140.00716.76
8.3.40.0140.00018.97
8.3.30.0120.00318.70
8.3.20.0080.00018.98
8.3.10.0040.00423.54
8.3.00.0080.00023.41
8.2.180.0140.00616.63
8.2.170.0130.00322.96
8.2.160.0040.01119.04
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0050.00326.16
8.2.120.0070.00721.19
8.2.110.0040.00422.25
8.2.100.0070.00717.72
8.2.90.0040.00417.63
8.2.80.0080.00017.97
8.2.70.0000.00817.80
8.2.60.0040.00417.93
8.2.50.0030.00518.10
8.2.40.0030.00519.17
8.2.30.0000.00719.21
8.2.20.0000.00718.03
8.2.10.0040.00419.46
8.2.00.0000.00719.43
8.1.280.0110.00725.92
8.1.270.0000.00822.02
8.1.260.0070.00026.35
8.1.250.0050.00328.09
8.1.240.0060.00323.79
8.1.230.0080.00318.98
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0030.00617.38
8.1.190.0050.00317.35
8.1.180.0000.00818.10
8.1.170.0040.00418.84
8.1.160.0040.00418.91
8.1.150.0070.00018.73
8.1.140.0020.00519.64
8.1.130.0030.00319.12
8.1.120.0070.00017.47
8.1.110.0000.00817.45
8.1.100.0030.00417.57
8.1.90.0040.00417.57
8.1.80.0040.00417.55
8.1.70.0030.00617.49
8.1.60.0000.00817.56
8.1.50.0030.00517.62
8.1.40.0080.00017.63
8.1.30.0060.00617.71
8.1.20.0000.00717.75
8.1.10.0000.00817.74
8.1.00.0050.00317.68
8.0.300.0000.00718.77
8.0.290.0070.00016.88
8.0.280.0000.00818.42
8.0.270.0000.00717.27
8.0.260.0000.00717.17
8.0.250.0000.00616.93
8.0.240.0000.00717.05
8.0.230.0040.00417.08
8.0.220.0030.00316.95
8.0.210.0000.00616.89
8.0.200.0030.00717.06
8.0.190.0000.00816.95
8.0.180.0050.00317.01
8.0.170.0000.00817.04
8.0.160.0040.00416.98
8.0.150.0050.00217.02
8.0.140.0040.00416.83
8.0.130.0000.00513.44
8.0.120.0000.00816.96
8.0.110.0040.00417.02
8.0.100.0050.00316.85
8.0.90.0000.00717.00
8.0.80.0110.00917.00
8.0.70.0050.00216.86
8.0.60.0070.00016.78
8.0.50.0070.00016.96
8.0.30.0130.00517.30
8.0.20.0090.00917.40
8.0.10.0050.00216.98
8.0.00.0090.01116.84
7.4.330.0000.00515.55
7.4.320.0030.00516.77
7.4.300.0030.00316.56
7.4.290.0040.00416.63
7.4.280.0030.00616.57
7.4.270.0070.00016.71
7.4.260.0000.00716.77
7.4.250.0070.00016.62
7.4.240.0000.00716.66
7.4.230.0030.00616.76
7.4.220.0080.00016.50
7.4.210.0060.00916.76
7.4.200.0040.00416.55
7.4.160.0080.00816.59
7.4.140.0120.00817.86
7.4.130.0070.01016.52
7.4.120.0120.00616.59
7.4.110.0040.01816.63
7.4.100.0090.01216.66
7.4.90.0080.01616.75
7.4.80.0130.01019.39
7.4.70.0080.01216.63
7.4.60.0000.01516.75
7.4.50.0100.00716.65
7.4.40.0060.01216.67
7.4.00.0100.00715.05
7.3.330.0050.00013.21
7.3.320.0000.00713.16
7.3.310.0070.00016.39
7.3.300.0000.00716.31
7.3.290.0030.00316.26
7.3.280.0100.00516.28
7.3.260.0080.01016.56
7.3.240.0100.01116.42
7.3.230.0140.00416.69
7.3.210.0100.00716.36
7.3.200.0120.00916.21
7.3.190.0110.00716.34
7.3.180.0100.00716.27
7.3.170.0130.00616.36
7.3.160.0100.00616.66
7.2.330.0090.01316.55
7.2.320.0030.01716.73
7.2.310.0070.01616.63
7.2.300.0120.00616.42
7.2.290.0100.01416.63
7.2.80.0710.00414.45
7.2.70.0520.01115.04
7.2.60.0690.00614.75
7.2.50.0700.00915.13
7.2.40.0630.00714.94
7.2.30.1310.00315.18
7.2.20.0560.01315.06
7.2.10.0700.00315.05
7.2.00.0680.00614.93
7.1.200.0040.00715.90
7.1.190.0620.01013.70
7.1.180.0850.00313.93
7.1.170.0760.00414.10
7.1.160.0700.00914.16
7.1.150.0670.01213.96
7.1.140.0650.00313.80
7.1.130.0610.00713.65
7.1.120.0710.00013.86
7.1.110.0920.01313.95
7.1.100.0740.00713.91
7.1.90.0880.00613.75
7.1.80.0850.00613.72
7.1.70.0820.01013.89
7.1.60.1180.00631.75
7.1.50.1050.01631.69
7.1.40.1320.00331.97
7.1.30.1340.00732.07
7.1.20.1390.01331.78
7.1.10.1200.01013.85
7.1.00.1530.00313.79

preferences:
31.13 ms | 400 KiB | 5 Q