3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = array('model' => array('foo bar' => 'herp derp')); var_dump(http_build_query($data, null, null, PHP_QUERY_RFC1738)); var_dump(http_build_query($data, null, null, PHP_QUERY_RFC3986));
Output for git.master, git.master_jit
Deprecated: http_build_query(): Passing null to parameter #2 ($numeric_prefix) of type string is deprecated in /in/uE36F on line 4 string(28) "model%5Bfoo+bar%5D=herp+derp" Deprecated: http_build_query(): Passing null to parameter #2 ($numeric_prefix) of type string is deprecated in /in/uE36F on line 5 string(32) "model%5Bfoo%20bar%5D=herp%20derp"
Output for rfc.property-hooks
Deprecated: http_build_query(): Passing null to parameter #2 ($numeric_prefix) of type string is deprecated in /in/uE36F on line 4 Deprecated: http_build_query(): Passing null to parameter #3 ($arg_separator) of type ?string is deprecated in /in/uE36F on line 4 string(28) "model%5Bfoo+bar%5D=herp+derp" Deprecated: http_build_query(): Passing null to parameter #2 ($numeric_prefix) of type string is deprecated in /in/uE36F on line 5 Deprecated: http_build_query(): Passing null to parameter #3 ($arg_separator) of type ?string is deprecated in /in/uE36F on line 5 string(32) "model%5Bfoo%20bar%5D=herp%20derp"

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
65.97 ms | 402 KiB | 8 Q