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, $tmp_save1); $b = parse_str("elements[55][wtf]=2", $tmp_save2); $wtf = array_merge($wtf, $tmp_save2); print_r($wtf);
based on CZh9T
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Array ( [elements] => Array ( [55] => Array ( [wtf] => 2 ) ) )