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_recursive($wtf, $tmp_save1); $b = parse_str("elements[55][wtf]=2", $tmp_save2); $wtf = array_merge_recursive($wtf, $tmp_save2); print_r($wtf);
based on XA1HM
Output for 7.0.0 - 7.1.0
Array ( [elements] => Array ( [55] => Array ( [e_id] => 1 ) [1] => Array ( [wtf] => 2 ) ) )
Output for 4.3.0 - 5.6.28
Array ( [elements] => Array ( [55] => Array ( [e_id] => 1 ) [56] => Array ( [wtf] => 2 ) ) )