3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr1 = ['p' => 2, 'pm' => 1]; $arr2 = ['p' => '']; print_r(array_merge($arr1, $arr2));

preferences:
25.07 ms | 405 KiB | 5 Q