3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = "http://bogdan.se/test"; $newUrl = http_build_url($url, array('query' => 'var2=example'), HTTP_URL_JOIN_QUERY); echo $newUrl; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0122e
function name:  (null)
number of ops:  10
compiled vars:  !0 = $url, !1 = $newUrl
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Fbogdan.se%2Ftest'
    6     1        INIT_FCALL_BY_NAME                                       'http_build_url'
          2        SEND_VAR_EX                                              !0
          3        SEND_VAL_EX                                              <array>
          4        FETCH_CONSTANT                                   ~3      'HTTP_URL_JOIN_QUERY'
          5        SEND_VAL_EX                                              ~3
          6        DO_FCALL                                      0  $4      
          7        ASSIGN                                                   !1, $4
    8     8        ECHO                                                     !1
   10     9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.23 ms | 1392 KiB | 13 Q