3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $defaultOptions = array( 'listClass' => 'default', 'test' => 'test' ); $options = array( 'listClass' => 'new', 'id' => '1', 'array' => array('test'=>'no') ); $options = $defaultOptions + $options; print_r($options);
based on FYkBm
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
Array ( [listClass] => default [test] => test [id] => 1 [array] => Array ( [test] => no ) )
Output for hhvm-3.10.0

Process exited with code 153.