3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array_merge([ 'code' => 'consent', 'filename' => 'Einwilligungserklaerung.pdf', 'mime' => 'application/pdf' ], null); var_dump($a);
based on ToAMb
Output for 7.3.0rc3
Warning: array_merge(): Expected parameter 2 to be an array, null given in /in/gIZeD on line 7 NULL
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.3.0beta1
Warning: array_merge(): Argument #2 is not an array in /in/gIZeD on line 7 NULL
Output for hhvm-3.15.4
Warning: Invalid operand type was used: expects array(s) in /in/gIZeD on line 7 NULL