3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $url = "a[][]=1&a[]asdasd[a]=2"; parse_str($url, $ar); print_r($ar);
Output for 4.3.0 - 5.1.2, 5.1.4 - 7.1.0
Array ( [a] => Array ( [0] => Array ( [0] => 1 ) [1] => 2 ) )
Output for 5.1.3
Array ( [a] => Array ( [0] => Array ( [0] => 1 ) [1] => Array ( [sdasd[a] => 2 ) ) )