3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $url = "a[][]=1&a[][=2"; parse_str($url, $ar); print_r($ar);
Output for 4.3.2 - 4.3.8, 4.3.10 - 5.0.1, 5.0.3 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Array ( [a] => Array ( [0] => Array ( [0] => 1 ) [1] => 2 ) )
Output for 4.3.9, 5.0.2

Process exited with code 139.
Output for 4.3.0 - 4.3.1
Warning: parse_str() [http://www.php.net/function.parse-str]: Missing ] in a variable in /in/BBmLJ on line 3 Array ( [a] => Array ( [0] => Array ( [0] => 1 ) [1] => Array ( ) ) )