3v4l.org

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

preferences:
50.36 ms | 405 KiB | 5 Q