3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array(); for ($i = 0; $i < 900; $i++) { if ($i != 899) $a['asd'.$i] = "$i"; else for ($j = 0; $j < 900; $j++) $a['asd'.$i]['qwe'.$j] = "$i - $j"; } $a = http_build_query($a); parse_str($a,$b); $b = http_build_query($b); echo count(explode('&',$a))."\n"; echo count(explode('&',$b))."\n";
Output for 5.3.28 - 5.3.29, 5.4.20 - 7.1.0
Warning: parse_str(): Input variables exceeded 1000. To increase the limit change max_input_vars in php.ini. in /in/87895 on line 10 1799 1000
Output for 5.3.11 - 5.3.27, 5.4.0 - 5.4.19
Warning: parse_str(): Input variables exceeded 1000. To increase the limit change max_input_vars in php.ini. in /in/63vX6 on line 10 1799 1000
Output for 5.0.0 - 5.3.10
1799 1799
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: http_build_query() in /in/63vX6 on line 9
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: http_build_query() in /in/63vX6 on line 9
Process exited with code 255.
Output for 4.3.1
Fatal error: Call to undefined function: http_build_query() in /in/63vX6 on line 9
Output for 4.3.0
Fatal error: Call to undefined function: http_build_query() in /in/87895 on line 9