3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php setcookie('b', 'a', 0, array()); setcookie('b', 'a', 0, '/', '', false, false, 'lax');
based on mEs2b
Output for 5.6.38, hhvm-3.18.5 - 3.21.3, 7.1.0 - 7.3.0rc3
Warning: setcookie() expects parameter 4 to be string, array given in /in/52qe6 on line 3 Warning: setcookie() expects at most 7 parameters, 8 given in /in/52qe6 on line 4
Output for hhvm-3.22.0
Warning: setcookie() expects parameter 4 to be string, array given in /in/52qe6 on line -1 Warning: setcookie() expects at most 7 parameters, 8 given in /in/52qe6 on line -1