3v4l.org

run code in 300+ PHP versions simultaneously
<?php $default = [ 'value' => '', ]; $input = [ 'value' => null, ]; var_dump(array_merge($default, $input));

preferences:
25.87 ms | 405 KiB | 5 Q