3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = "Set-Cookie: Name=Value; expires=Tue, 01 Jan 2018 00:00:00 GMT; domain=.site.com; path=/; httponly\nSet-Cookie: Name=Another_Value; expires=Wed, 02 Jan 2019 00:00:00 GMT; domain=.another_site.com; path=/newpath; httponly"; $res = array(); if (preg_match_all('~Set-Cookie:((?:\h*[^=\n]+(?:=[^;\n]+)?)*)~', $s, $matches, PREG_SET_ORDER, 0)) { foreach ($matches as $x) { $tmp = preg_match_all('~(\w+)(?:=([^\s;][^;\n]*))?~', $x[1], $sub); if ($tmp) { $res[] = array_combine($sub[1], $sub[2]); } } } print_r($res);

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.0150.00618.81
8.3.50.0040.01118.45
8.3.40.0150.00719.14
8.3.30.0130.00318.97
8.3.20.0050.00320.95
8.3.10.0080.00023.66
8.3.00.0050.00323.66
8.2.180.0130.00325.92
8.2.170.0090.00619.21
8.2.160.0040.01122.96
8.2.150.0080.00025.66
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0040.00421.13
8.2.110.0060.00319.39
8.2.100.0120.00018.03
8.2.90.0050.00318.03
8.2.80.0060.00320.07
8.2.70.0080.00017.88
8.2.60.0050.00317.75
8.2.50.0040.00417.88
8.2.40.0040.00419.48
8.2.30.0000.00719.28
8.2.20.0040.00418.23
8.2.10.0000.00719.38
8.2.00.0040.00419.19
8.1.280.0100.01025.92
8.1.270.0000.00819.01
8.1.260.0040.00426.35
8.1.250.0030.00528.09
8.1.240.0030.00623.81
8.1.230.0110.00022.21
8.1.220.0000.00817.79
8.1.210.0030.00618.84
8.1.200.0040.00417.35
8.1.190.0090.00017.35
8.1.180.0040.00418.10
8.1.170.0030.00618.67
8.1.160.0040.00418.97
8.1.150.0000.00718.80
8.1.140.0000.00722.23
8.1.130.0030.00320.18
8.1.120.0040.00417.53
8.1.110.0000.00717.63
8.1.100.0000.00717.52
8.1.90.0000.00817.51
8.1.80.0060.00317.58
8.1.70.0070.00017.65
8.1.60.0090.00017.76
8.1.50.0040.00417.59
8.1.40.0080.00017.61
8.1.30.0030.00617.66
8.1.20.0040.00517.69
8.1.10.0040.00417.73
8.1.00.0050.00317.70
8.0.300.0000.00719.95
8.0.290.0030.00616.75
8.0.280.0030.00318.48
8.0.270.0030.00317.29
8.0.260.0000.00618.48
8.0.250.0040.00417.09
8.0.240.0070.00017.16
8.0.230.0080.00017.09
8.0.220.0030.00317.05
8.0.210.0000.00716.95
8.0.200.0000.00817.13
8.0.190.0000.00717.11
8.0.180.0000.00917.09
8.0.170.0050.00316.97
8.0.160.0000.00717.05
8.0.150.0050.00216.91
8.0.140.0000.00716.99
8.0.130.0050.00013.44
8.0.120.0000.00817.08
8.0.110.0050.00317.00
8.0.100.0040.00417.06
8.0.90.0040.00417.06
8.0.80.0110.00616.96
8.0.70.0080.00017.05
8.0.60.0040.00417.05
8.0.50.0040.00416.96
8.0.30.0100.00717.36
8.0.20.0110.01117.41
8.0.10.0050.00317.07
8.0.00.0040.01316.89
7.4.330.0020.00215.55
7.4.320.0000.00716.63
7.4.300.0000.00916.82
7.4.290.0000.00716.68
7.4.280.0040.00416.83
7.4.270.0070.00016.85
7.4.260.0100.00016.73
7.4.250.0000.00816.84
7.4.240.0040.00416.89
7.4.230.0000.00716.62
7.4.220.0040.00416.55
7.4.210.0120.00216.72
7.4.200.0040.00416.62
7.4.160.0110.00616.82
7.4.140.0110.00817.86
7.4.130.0140.00316.63
7.4.120.0070.01016.79
7.4.110.0090.00916.66
7.4.100.0060.01716.59
7.4.90.0030.01516.64
7.4.80.0100.00619.39
7.4.70.0120.00616.90
7.4.60.0040.01216.65
7.4.50.0060.01016.63
7.4.40.0100.00716.65
7.4.10.0120.00915.01
7.4.00.0080.00615.11
7.3.330.0030.00613.29
7.3.320.0030.00313.46
7.3.310.0020.00516.45
7.3.300.0040.00416.48
7.3.290.0000.00716.47
7.3.280.0110.00616.44
7.3.260.0120.00916.72
7.3.240.0060.01316.59
7.3.230.0080.00816.80
7.3.210.0070.01116.46
7.3.200.0030.01316.55
7.3.190.0090.01516.56
7.3.180.0070.01016.41
7.3.170.0100.00716.49
7.3.160.0090.00616.46
7.3.130.0070.01115.14
7.3.120.0070.00915.03
7.3.110.0050.01014.88
7.3.100.0060.00815.08
7.3.90.0040.01215.20
7.3.80.0080.00815.10
7.3.70.0090.00714.95
7.3.60.0080.00515.06
7.3.50.0060.01115.17
7.3.40.0080.00515.06
7.3.30.0010.01114.95
7.3.20.0020.01316.78
7.3.10.0000.01016.78
7.3.00.0250.00515.78
7.2.330.0130.00416.71
7.2.320.0090.00916.89
7.2.310.0080.00816.69
7.2.300.0110.00616.77
7.2.290.0080.00916.71
7.2.260.0130.01015.42
7.2.250.0110.00615.24
7.2.240.0060.00915.12
7.2.230.0140.00315.23
7.2.220.0080.00615.32
7.2.210.0030.01515.39
7.2.200.0050.00915.02
7.2.190.0040.01015.38
7.2.180.0070.00815.26
7.2.170.0060.00615.37
7.2.160.0110.00414.95
7.2.150.0060.00917.01
7.2.140.0000.01417.00
7.2.130.0230.01216.26
7.2.120.0310.00516.25
7.2.110.0210.00716.16
7.2.100.0300.00616.12
7.2.90.0340.00916.23
7.2.80.0170.01016.28
7.2.70.0200.00416.25
7.2.60.0180.00716.23
7.2.50.0180.00816.28
7.2.40.0280.00816.37
7.2.30.0310.01016.14
7.2.20.0260.00616.16
7.2.10.0390.00616.03
7.2.00.0220.01116.14
7.1.330.0050.00716.02
7.1.320.0070.01015.90
7.1.310.0030.00915.96
7.1.300.0080.00915.91
7.1.290.0090.00516.09
7.1.280.0050.00616.06
7.1.270.0060.00715.97
7.1.260.0070.00416.00
7.1.250.0290.00215.20
7.1.240.0080.00415.99
7.1.230.0090.00616.17
7.1.220.0030.01515.66
7.1.210.0030.01315.63
7.1.200.0070.00416.17
7.1.190.0060.00615.71
7.1.180.0060.00616.18
7.1.170.0050.00516.18
7.1.160.0070.01015.94
7.1.150.0130.00015.95
7.1.140.0060.00315.96
7.1.130.0030.01016.07
7.1.120.0060.00315.99
7.1.110.0000.01316.02
7.1.100.0070.00316.02
7.1.90.0030.01016.11
7.1.80.0000.00915.99
7.1.70.0060.00916.19
7.1.60.0090.00416.09
7.1.50.0060.00616.02
7.1.40.0030.01316.10
7.1.30.0060.00616.11
7.1.20.0040.00716.04
7.1.10.0070.00715.91
7.1.00.0000.01415.97
7.0.330.0120.00315.55
7.0.320.0050.01015.41
7.0.310.0000.01215.74
7.0.300.0000.01515.29
7.0.290.0110.00415.40
7.0.280.0030.01015.70
7.0.270.0000.00915.27
7.0.260.0060.00615.75
7.0.250.0060.00915.54
7.0.240.0040.01215.57
7.0.230.0000.00815.66
7.0.220.0060.00615.42
7.0.210.0030.01215.76
7.0.200.0030.00615.70
7.0.190.0000.01015.63
7.0.180.0000.01615.62
7.0.170.0030.01315.60
7.0.160.0000.01315.60
7.0.150.0030.01015.76
7.0.140.0080.00415.67
7.0.130.0000.01415.34
7.0.120.0070.00715.71
7.0.110.0050.00515.68
7.0.100.0040.01215.46
7.0.90.0040.01115.57
7.0.80.0070.00715.49
7.0.70.0140.00015.68
7.0.60.0030.01015.74
7.0.50.0030.00915.61
7.0.40.0080.00413.72
7.0.30.0030.00713.54
7.0.20.0000.00913.86
7.0.10.0070.00713.63
7.0.00.0000.01313.68

preferences:
62.47 ms | 401 KiB | 5 Q