3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array('key1' => 'value1', 'key2' => 'value2); echo http_build_query($arr, '', ' ');
Output for 5.4.0 - 5.4.30
Parse error: syntax error, unexpected '', '' (T_CONSTANT_ENCAPSED_STRING), expecting ')' in /in/2NT8s on line 5
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /in/2NT8s on line 5
Process exited with code 255.

preferences:
186.38 ms | 1395 KiB | 67 Q