3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL); setcookie('foo', 'bar', time()+(60*60*24*30), '/; SameSite=None', '3v4l.org', true, true);
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.16, 8.3.3
Fatal error: Uncaught ValueError: setcookie(): "path" option cannot contain ",", ";", " ", "\t", "\r", "\n", "\013", or "\014" in /in/iMo7C:5 Stack trace: #0 /in/iMo7C(5): setcookie('foo', 'bar', 1689544796, '/; SameSite=Non...', '3v4l.org', true, true) #1 {main} thrown in /in/iMo7C on line 5
Process exited with code 255.
Output for 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
Warning: Cookie paths cannot contain any of the following ',; \t\r\n\013\014' in /in/iMo7C on line 5
Output for 7.0.20, 7.2.0 - 7.2.34

preferences:
79.14 ms | 402 KiB | 170 Q