3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $options = array( "utm_source" => "newsletter", "utm_medium" => "email", "utm_campaign" => "Мясные деликатесы по-домашнему" ); var_dump(http_build_query($options, PHP_QUERY_RFC3986));
Output for 5.4.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
string(217) "utm_source=newsletter&utm_medium=email&utm_campaign=%D0%9C%D1%8F%D1%81%D0%BD%D1%8B%D0%B5+%D0%B4%D0%B5%D0%BB%D0%B8%D0%BA%D0%B0%D1%82%D0%B5%D1%81%D1%8B+%D0%BF%D0%BE-%D0%B4%D0%BE%D0%BC%D0%B0%D1%88%D0%BD%D0%B5%D0%BC%D1%83"
Output for 5.0.0 - 5.3.29
Notice: Use of undefined constant PHP_QUERY_RFC3986 - assumed 'PHP_QUERY_RFC3986' in /in/oG805 on line 9 string(217) "utm_source=newsletter&utm_medium=email&utm_campaign=%D0%9C%D1%8F%D1%81%D0%BD%D1%8B%D0%B5+%D0%B4%D0%B5%D0%BB%D0%B8%D0%BA%D0%B0%D1%82%D0%B5%D1%81%D1%8B+%D0%BF%D0%BE-%D0%B4%D0%BE%D0%BC%D0%B0%D1%88%D0%BD%D0%B5%D0%BC%D1%83"
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: http_build_query() in /in/oG805 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/oG805 on line 9
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: http_build_query() in /in/oG805 on line 9