3v4l.org

run code in 300+ PHP versions simultaneously
<?php $urlParams = array( 'username' => "test", 'password' => strtolower("test"), 'id' => $portfolioName, 'style' => 'JPM' ); echo str_replace('&amp;', '&', http_build_query($urlParams));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Ib3LL
function name:  (null)
number of ops:  18
compiled vars:  !0 = $urlParams, !1 = $portfolioName
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_ARRAY                                       ~2      'test', 'username'
    5     1        INIT_FCALL                                               'strtolower'
          2        SEND_VAL                                                 'test'
          3        DO_ICALL                                         $3      
          4        ADD_ARRAY_ELEMENT                                ~2      $3, 'password'
    6     5        ADD_ARRAY_ELEMENT                                ~2      !1, 'id'
    7     6        ADD_ARRAY_ELEMENT                                ~2      'JPM', 'style'
    3     7        ASSIGN                                                   !0, ~2
    9     8        INIT_FCALL                                               'str_replace'
          9        SEND_VAL                                                 '%26amp%3B'
         10        SEND_VAL                                                 '%26'
         11        INIT_FCALL                                               'http_build_query'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                         $5      
         14        SEND_VAR                                                 $5
         15        DO_ICALL                                         $6      
         16        ECHO                                                     $6
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.95 ms | 1394 KiB | 19 Q