3v4l.org - online PHP & HHVM shell, execute code in 100+ different versions!

<?php function qs_search($qs) { $query_string = array(); $query_string['search'] = basename($qs); return http_build_query($query_string); } setlocale(LC_ALL, "en_US.UTF8"); var_dump(qs_search("regular")); var_dump(qs_search("Синодальный")); ?>
Output for hhvm-3.0.1 - 3.4.0
string(14) "search=regular" string(73) "search=%D0%A1%D0%B8%D0%BD%D0%BE%D0%B4%D0%B0%D0%BB%D1%8C%D0%BD%D1%8B%D0%B9"
Output for 5.0.0 - 5.6.3, php7@20140507 - 20141101
string(14) "search=regular" string(7) "search="
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: http_build_query() in /in/In4Kt on line 5
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: http_build_query() in /in/In4Kt on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: http_build_query() in /in/In4Kt on line 5