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.0130.01018.56
8.3.50.0220.00416.51
8.3.40.0110.00718.88
8.3.30.0090.00618.67
8.3.20.0060.00318.88
8.3.10.0080.00023.48
8.3.00.0080.00023.62
8.2.180.0120.00916.32
8.2.170.0090.00622.96
8.2.160.0110.00419.21
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0070.00020.57
8.2.120.0080.00026.35
8.2.110.0000.01022.37
8.2.100.0090.00617.72
8.2.90.0040.00417.88
8.2.80.0040.00417.97
8.2.70.0000.00817.80
8.2.60.0050.00317.91
8.2.50.0050.00318.10
8.2.40.0030.00519.14
8.2.30.0040.00419.27
8.2.20.0040.00418.08
8.2.10.0040.00419.50
8.2.00.0080.00019.30
8.1.280.0120.00325.92
8.1.270.0080.00022.16
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0060.00323.77
8.1.230.0090.00319.04
8.1.220.0060.00317.74
8.1.210.0050.00318.77
8.1.200.0000.00817.23
8.1.190.0060.00317.35
8.1.180.0090.00018.10
8.1.170.0030.00618.81
8.1.160.0040.00418.90
8.1.150.0030.00518.82
8.1.140.0040.00419.68
8.1.130.0000.00718.98
8.1.120.0000.00717.45
8.1.110.0000.00817.55
8.1.100.0040.00417.44
8.1.90.0000.00817.52
8.1.80.0030.00517.57
8.1.70.0040.00417.52
8.1.60.0000.00817.69
8.1.50.0000.00817.58
8.1.40.0000.00817.59
8.1.30.0040.00717.70
8.1.20.0000.00717.62
8.1.10.0050.00317.67
8.1.00.0080.00017.62
8.0.300.0040.00418.77
8.0.290.0080.00016.75
8.0.280.0000.00718.45
8.0.270.0000.00717.14
8.0.260.0030.00417.30
8.0.250.0030.00317.04
8.0.240.0030.00317.01
8.0.230.0040.00417.02
8.0.220.0000.00716.98
8.0.210.0070.00017.02
8.0.200.0060.00316.97
8.0.190.0000.00816.96
8.0.180.0060.00317.04
8.0.170.0040.00417.01
8.0.160.0000.00717.01
8.0.150.0000.00716.84
8.0.140.0000.00816.90
8.0.130.0000.00613.36
8.0.120.0070.00016.90
8.0.110.0030.00416.86
8.0.100.0050.00317.00
8.0.90.0000.00816.82
8.0.80.0090.01116.97
8.0.70.0000.00716.88
8.0.60.0040.00416.93
8.0.50.0040.00417.02
8.0.30.0080.01117.13
8.0.20.0120.00617.40
8.0.10.0040.00417.14
8.0.00.0150.00416.74
7.4.330.0050.00015.55
7.4.320.0090.00016.84
7.4.300.0030.00316.75
7.4.290.0000.00716.76
7.4.280.0040.00416.63
7.4.270.0000.00816.80
7.4.260.0000.00816.57
7.4.250.0040.00416.64
7.4.240.0070.00016.63
7.4.230.0050.00316.57
7.4.220.0040.00416.83
7.4.210.0090.00916.77
7.4.200.0030.00316.69
7.4.160.0090.01016.61
7.4.140.0080.01117.86
7.4.130.0070.01116.76
7.4.120.0100.00916.65
7.4.110.0130.00616.71
7.4.100.0180.00716.60
7.4.90.0060.01216.54
7.4.80.0100.01019.39
7.4.70.0160.00316.79
7.4.60.0130.00316.48
7.4.50.0040.01216.50
7.4.40.0090.01516.73
7.4.00.0100.00714.98
7.3.330.0050.00013.20
7.3.320.0060.00013.22
7.3.310.0030.00616.26
7.3.300.0070.00016.12
7.3.290.0070.00016.14
7.3.280.0130.00616.26
7.3.260.0090.01116.56
7.3.240.0110.01016.42
7.3.230.0110.00716.38
7.3.210.0090.01216.36
7.3.200.0070.01016.28
7.3.190.0110.00616.29
7.3.180.0070.01016.32
7.3.170.0060.00916.26
7.3.160.0060.01316.57
7.3.10.0070.00516.60
7.3.00.0050.00516.72
7.2.330.0150.00316.63
7.2.320.0120.00616.61
7.2.310.0100.01316.39
7.2.300.0110.00516.62
7.2.290.0140.01116.55
7.2.130.0020.01216.91
7.2.120.0070.00716.75
7.2.110.0130.00716.80
7.2.100.0070.00716.90
7.2.90.0100.00016.81
7.2.80.0280.00715.94
7.2.70.0360.00816.20
7.2.60.0240.00916.18
7.2.50.0500.00716.08
7.2.40.0290.00616.21
7.2.30.0280.01016.21
7.2.20.0350.00816.17
7.2.10.0570.00816.15
7.2.00.0250.01016.27
7.1.250.0070.00315.97
7.1.200.0120.00016.07
7.1.190.0570.00713.69
7.1.180.0670.01013.68
7.1.170.0550.00913.98
7.1.160.0650.00313.81
7.1.150.0700.00713.87
7.1.140.1020.00313.88
7.1.130.0660.00713.78
7.1.120.0630.00713.61
7.1.110.1040.01213.84
7.1.100.0980.01013.71
7.1.90.0880.00613.49
7.1.80.0940.01013.49
7.1.70.1110.00613.41
7.1.60.1060.01531.68
7.1.50.1380.02031.85
7.1.40.1420.00931.98
7.1.30.1610.01632.03
7.1.20.1520.01032.02
7.1.10.1550.00713.71
7.1.00.1530.01113.92

preferences:
1090.43 ms | 401 KiB | 5 Q