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')));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Oakob
function name:  (null)
number of ops:  34
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                                   'var_dump'
          1        INIT_FCALL                                                   'http_build_query'
    5     2        SEND_VAL                                                     <array>
    4     3        DO_ICALL                                             $0      
    5     4        SEND_VAR                                                     $0
    4     5        DO_ICALL                                                     
    7     6        INIT_FCALL                                                   'var_dump'
          7        INIT_FCALL                                                   'urlencode'
          8        SEND_VAL                                                     'tweet.read+users.read+offline.access'
          9        DO_ICALL                                             $2      
         10        CONCAT                                               ~3      'scope%3D', $2
         11        SEND_VAL                                                     ~3
         12        DO_ICALL                                                     
   10    13        INIT_FCALL                                                   'var_dump'
         14        INIT_FCALL                                                   'http_build_query'
   11    15        INIT_FCALL                                                   'urlencode'
         16        SEND_VAL                                                     'tweet.read+users.read+offline.access'
         17        DO_ICALL                                             $5      
         18        INIT_ARRAY                                           ~6      $5, 'scope'
         19        SEND_VAL                                                     ~6
   10    20        DO_ICALL                                             $7      
   11    21        SEND_VAR                                                     $7
   10    22        DO_ICALL                                                     
   13    23        INIT_FCALL                                                   'var_dump'
         24        INIT_FCALL                                                   'urlencode'
         25        INIT_FCALL                                                   'urlencode'
         26        SEND_VAL                                                     'tweet.read+users.read+offline.access'
         27        DO_ICALL                                             $9      
         28        SEND_VAR                                                     $9
         29        DO_ICALL                                             $10     
         30        CONCAT                                               ~11     'scope%3D', $10
         31        SEND_VAL                                                     ~11
         32        DO_ICALL                                                     
         33      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
129.07 ms | 481 KiB | 10 Q