3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $options = array( 'name' => 'sso' ); $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.12.0, 7.0.0 - 7.1.0
Array ( [name] => sso [value] => [expire] => 0 [path] => / [domain] => [secure] => [httpOnly] => )