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"; if (preg_match_all('~(?:\G(?!^);|Set-Cookie:)\s*\K([^=\n]+)(?:=([^;\n]+))?~', $s, $matches)) { print_r(array_combine($matches[1],$matches[2])); }

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.30
8.3.50.0070.01518.25
8.3.40.0150.00718.87
8.3.30.0120.00418.76
8.3.20.0000.00820.73
8.3.10.0040.00423.50
8.3.00.0080.00023.66
8.2.180.0130.00318.43
8.2.170.0040.01222.96
8.2.160.0070.00722.21
8.2.150.0000.00724.18
8.2.140.0030.00624.66
8.2.130.0000.00726.16
8.2.120.0080.00021.25
8.2.110.0090.00022.38
8.2.100.0090.00317.91
8.2.90.0030.00517.63
8.2.80.0080.00017.97
8.2.70.0060.00318.03
8.2.60.0030.00518.22
8.2.50.0050.00318.10
8.2.40.0040.00419.15
8.2.30.0080.00019.16
8.2.20.0040.00418.09
8.2.10.0000.00719.11
8.2.00.0000.00719.34
8.1.280.0120.00625.92
8.1.270.0040.00418.84
8.1.260.0030.00526.35
8.1.250.0070.00028.09
8.1.240.0030.00617.61
8.1.230.0080.00418.99
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0050.00317.35
8.1.190.0030.00517.35
8.1.180.0040.00418.10
8.1.170.0080.00018.71
8.1.160.0000.00718.79
8.1.150.0070.00018.93
8.1.140.0000.00822.19
8.1.130.0000.00720.04
8.1.120.0040.00417.57
8.1.110.0040.00417.54
8.1.100.0000.00717.56
8.1.90.0030.00617.47
8.1.80.0030.00617.45
8.1.70.0030.00617.59
8.1.60.0060.00317.67
8.1.50.0030.00517.63
8.1.40.0040.00417.53
8.1.30.0000.01117.65
8.1.20.0000.00817.64
8.1.10.0000.00817.67
8.1.00.0040.00417.69
8.0.300.0070.00018.77
8.0.290.0030.00616.75
8.0.280.0030.00318.40
8.0.270.0040.00417.10
8.0.260.0030.00318.29
8.0.250.0030.00316.97
8.0.240.0050.00316.92
8.0.230.0000.00717.02
8.0.220.0000.00716.90
8.0.210.0040.00416.90
8.0.200.0000.00717.04
8.0.190.0000.00817.07
8.0.180.0050.00316.95
8.0.170.0060.00317.00
8.0.160.0000.00816.95
8.0.150.0040.00416.73
8.0.140.0040.00416.93
8.0.130.0030.00313.37
8.0.120.0040.00416.85
8.0.110.0070.00016.93
8.0.100.0000.00716.93
8.0.90.0000.00816.85
8.0.80.0070.01016.95
8.0.70.0030.00517.07
8.0.60.0000.00716.85
8.0.50.0040.00416.79
8.0.30.0090.00817.21
8.0.20.0100.01017.40
8.0.10.0040.00417.11
8.0.00.0110.00616.93
7.4.330.0050.00015.55
7.4.320.0030.00316.75
7.4.300.0050.00216.68
7.4.290.0000.00716.68
7.4.280.0040.00416.66
7.4.270.0030.00316.75
7.4.260.0000.00716.73
7.4.250.0040.00416.69
7.4.240.0000.00716.59
7.4.230.0070.00016.56
7.4.220.0060.00316.79
7.4.210.0080.00916.78
7.4.200.0030.00316.66
7.4.160.0120.00616.65
7.4.140.0100.00817.86
7.4.130.0060.01116.64
7.4.120.0110.00716.74
7.4.110.0100.00716.74
7.4.100.0100.01316.55
7.4.90.0070.01016.67
7.4.80.0100.00719.39
7.4.70.0090.00816.68
7.4.60.0130.00616.81
7.4.50.0100.00616.69
7.4.40.0060.01216.57
7.4.00.0090.00614.94
7.3.330.0040.00413.11
7.3.320.0000.00513.20
7.3.310.0020.00516.43
7.3.300.0000.00716.37
7.3.290.0040.00416.36
7.3.280.0120.00716.38
7.3.260.0130.00716.61
7.3.240.0090.00816.53
7.3.230.0070.01016.69
7.3.210.0180.00716.51
7.3.200.0140.00316.32
7.3.190.0160.00616.79
7.3.180.0070.01016.33
7.3.170.0070.01116.31
7.3.160.0130.00316.48
7.3.00.0360.00514.81
7.2.330.0110.00616.79
7.2.320.0120.00616.48
7.2.310.0100.00716.68
7.2.300.0060.01016.62
7.2.290.0100.00716.68
7.2.130.0370.00314.66
7.2.120.0320.01114.73
7.2.110.0300.00415.03
7.2.100.0330.00914.95
7.2.90.0350.00614.76
7.2.80.0240.00914.84
7.2.70.0300.00414.75
7.2.60.0260.00615.30
7.2.50.0250.01414.81
7.2.40.0250.00615.05
7.2.30.0240.00715.18
7.2.20.0200.01014.82
7.2.10.0220.00615.11
7.2.00.0240.01015.10
7.1.250.0340.01014.05

preferences:
58.44 ms | 401 KiB | 5 Q