3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $params = array_merge($params, [ 'approval_prompt' => 'force', 'response_type' => 'code', 'client_id' => '377121273700-ee1mrkdknfarq5k74pc7qs2g6upqos05.apps.googleusercontent.com', 'redirect_uri' => 'http://adwords.site/token', 'scope' => 'https://www.googleapis.com/auth/adwords', 'access_type' => 'offline' ]); echo 'https://accounts.google.com/o/oauth2/auth'.$paramString = http_build_query($params, null, '&');
based on H9VXp
Output for 7.0.0 - 7.2.0
Notice: Undefined variable: params in /in/Y6qes on line 3 Warning: array_merge(): Argument #1 is not an array in /in/Y6qes on line 4 Warning: http_build_query(): Parameter 1 expected to be Array or Object. Incorrect value given in /in/Y6qes on line 11 https://accounts.google.com/o/oauth2/auth
Output for 5.4.11 - 5.6.28
Notice: Undefined variable: params in /in/Y6qes on line 3 Warning: array_merge(): Argument #1 is not an array in /in/Y6qes on line 10 Warning: http_build_query(): Parameter 1 expected to be Array or Object. Incorrect value given in /in/Y6qes on line 11 https://accounts.google.com/o/oauth2/auth
Output for 5.3.21 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/Y6qes on line 3
Process exited with code 255.