3v4l.org

run code in 300+ PHP versions simultaneously
<?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 - 5.4.45, 5.5.24 - 5.5.35, 5.6.7 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
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.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.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.3.11, 4.4.0 - 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

preferences:
251.88 ms | 401 KiB | 344 Q