3v4l.org

run code in 500+ PHP versions simultaneously
<?php class CookieType { public string $samesite = "Lax"; public int $expires_or_options { get { return time() + 3600; } } public string $path = "/"; public string $domain = ""; public bool $secure = false; public bool $httponly = true; } function fakeSetCookie( string $name, string $value = "", int $expires_or_options = 0, string $path = "", string $domain = "", bool $secure = false, bool $httponly = false, string $samesite = "Strict", ) { var_dump([ "name" => $name, "value" => $value, "expires_or_options" => $expires_or_options, "path" => $path, "domain" => $domain, "secure" => $secure, "httponly" => $httponly, "samesite" => $samesite, ]); } fakeSetCookie("testName", "testValue", ...new CookieType());

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.5.90.0070.00416.95
8.5.80.0180.00616.75
8.5.70.0330.00616.49
8.5.60.0310.01016.73
8.5.50.0330.01116.73
8.5.40.0380.00916.44
8.5.30.0310.00616.75
8.5.20.0270.00716.46
8.5.10.0350.00816.43
8.5.00.0080.01116.49
8.4.240.0400.00819.57
8.4.230.0270.01319.66
8.4.220.0310.00819.47
8.4.210.0360.00719.35
8.4.200.0360.01019.38
8.4.190.0300.01519.43
8.4.180.0330.00919.67
8.4.170.0320.01019.66
8.4.160.0310.01019.59
8.4.150.0320.01019.73
8.4.140.0330.00817.45
8.4.130.0370.01117.43
8.4.120.0200.00817.71
8.4.110.0180.00617.52
8.4.100.0180.00317.95
8.4.90.0360.00817.48
8.4.80.0380.00517.77
8.4.70.0370.00617.72
8.4.60.0330.01017.82
8.4.50.0290.00917.76
8.4.40.0400.00917.43
8.4.30.0350.00517.48
8.4.20.0360.01117.33
8.4.10.0320.00617.61
8.3.330.0480.00718.07
8.3.320.0260.00718.31
8.3.310.0340.00618.31
8.3.300.0300.01018.11
8.3.290.0340.01217.94
8.3.280.0350.00818.25
8.3.270.0340.00616.48
8.3.260.0350.00916.64
8.3.250.0290.00816.85
8.3.240.0330.00716.75
8.3.230.0280.00616.81
8.3.220.0220.00416.53
8.3.210.0220.00816.43
8.3.200.0370.00916.65
8.3.190.0310.00616.84
8.3.180.0320.00816.80
8.3.170.0330.00916.71
8.3.160.0360.00716.71
8.3.150.0340.00916.71
8.3.140.0310.01216.70
8.3.130.0300.00716.66
8.3.120.0400.00916.50
8.3.110.0200.00516.83
8.3.100.0170.00516.53
8.3.90.0170.00416.71
8.3.80.0190.00416.67
8.3.70.0180.00216.73
8.3.60.0170.00316.70
8.3.50.0160.00416.66
8.3.40.0200.00417.90
8.3.30.0180.00517.98
8.3.20.0250.00817.97
8.3.10.0280.00617.88
8.3.00.0270.00918.14
8.2.330.0420.00417.56
8.2.320.0310.01017.86
8.2.310.0350.00817.68

preferences:
53.35 ms | 792 KiB | 5 Q