3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { public function __toString() { return "bar"; } } $params = array(); $params['a'] = 'b'; $params['foo'] = new foo(); $query = http_build_query($params); var_dump($params, $query);

preferences:
51.69 ms | 408 KiB | 5 Q