3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $wtf = array(); $a = parse_str("elements[55][e_id]=1", $tmp_save1); $wtf = array_merge($wtf, $a); $b = parse_str("elements[55][wtf]=2", $tmp_save2); $wtf = array_merge($wtf, $b); print_r($wtf);
Output for 5.3.0 - 5.6.28, 7.0.0 - 7.1.0
Warning: array_merge(): Argument #2 is not an array in /in/CZh9T on line 6 Warning: array_merge(): Argument #1 is not an array in /in/CZh9T on line 9
Output for hhvm-3.12.0
Warning: Invalid operand type was used: expects array(s) in /in/CZh9T on line 6 Warning: array_merge() expects parameter 1 to be array, null given in /in/CZh9T on line 9
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.0.0 - 5.2.17
Warning: array_merge(): Argument #2 is not an array in /in/CZh9T on line 6 Warning: array_merge(): Argument #1 is not an array in /in/CZh9T on line 9 Warning: array_merge(): Argument #2 is not an array in /in/CZh9T on line 9
Output for 4.3.0 - 4.4.9
Array ( )