3v4l.org

run code in 500+ PHP versions simultaneously
<?php // These two are roughly equivalent var_dump(http_build_query([ 'scope' => 'tweet.read users.read offline.access', ])); var_dump('scope=' . urlencode('tweet.read users.read offline.access')); // These two are roughly equivalent var_dump(http_build_query([ 'scope' => urlencode('tweet.read users.read offline.access'), ])); var_dump('scope=' . urlencode(urlencode('tweet.read users.read offline.access')));

preferences:
22.99 ms | 476 KiB | 4 Q