3v4l.org

run code in 300+ PHP versions simultaneously
<?php $first = "/calvin/master/?p=pages&id=3"; //DYNAMIC URL $second = "http://localhost/calvin/"; print_r(parse_url($first)); print_r(parse_url($second)); echo http_build_url("http://user@www.example.com/pub/index.php?a=b#files",array_merge(parse_url($second),parse_url($first)));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cjDWM
function name:  (null)
number of ops:  30
compiled vars:  !0 = $first, !1 = $second
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%2Fcalvin%2Fmaster%2F%3Fp%3Dpages%26id%3D3'
    5     1        ASSIGN                                                   !1, 'http%3A%2F%2Flocalhost%2Fcalvin%2F'
    7     2        INIT_FCALL                                               'print_r'
          3        INIT_FCALL                                               'parse_url'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $4      
          6        SEND_VAR                                                 $4
          7        DO_ICALL                                                 
    8     8        INIT_FCALL                                               'print_r'
          9        INIT_FCALL                                               'parse_url'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                         $6      
         12        SEND_VAR                                                 $6
         13        DO_ICALL                                                 
    9    14        INIT_FCALL_BY_NAME                                       'http_build_url'
         15        SEND_VAL_EX                                              'http%3A%2F%2Fuser%40www.example.com%2Fpub%2Findex.php%3Fa%3Db%23files'
         16        INIT_FCALL                                               'array_merge'
         17        INIT_FCALL                                               'parse_url'
         18        SEND_VAR                                                 !1
         19        DO_ICALL                                         $8      
         20        SEND_VAR                                                 $8
         21        INIT_FCALL                                               'parse_url'
         22        SEND_VAR                                                 !0
         23        DO_ICALL                                         $9      
         24        SEND_VAR                                                 $9
         25        DO_ICALL                                         $10     
         26        SEND_VAR_NO_REF_EX                                       $10
         27        DO_FCALL                                      0  $11     
         28        ECHO                                                     $11
         29      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.19 ms | 1395 KiB | 19 Q