3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $options = array( 'name' => 'sso', 'secure' => true ); $defaults = array( 'name' => 'CakeCookie[default]', 'value' => '', 'expire' => 0, 'path' => '/', 'domain' => '', 'secure' => false, 'httpOnly' => false ); $options += $defaults; print_r($options);
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.13.2, 7.0.0 - 7.1.0
Array ( [name] => sso [secure] => 1 [value] => [expire] => 0 [path] => / [domain] => [httpOnly] => )