3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a =parse_url('http://clipr.in/output/product.php?id=24787'); var_dump($a); $a['query']=http_build_query($a['query']); $parsedurl = $a; echo $parsedurl['scheme']."://".$parsedurl['host']."".$parsedurl['path']."?".$parsedurl['query']; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CMhtr
function name:  (null)
number of ops:  26
compiled vars:  !0 = $a, !1 = $parsedurl
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'parse_url'
          1        SEND_VAL                                                 'http%3A%2F%2Fclipr.in%2Foutput%2Fproduct.php%3Fid%3D24787'
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
    3     4        INIT_FCALL                                               'var_dump'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                                 
    4     7        INIT_FCALL                                               'http_build_query'
          8        FETCH_DIM_R                                      ~6      !0, 'query'
          9        SEND_VAL                                                 ~6
         10        DO_ICALL                                         $7      
         11        ASSIGN_DIM                                               !0, 'query'
         12        OP_DATA                                                  $7
    5    13        ASSIGN                                                   !1, !0
    6    14        FETCH_DIM_R                                      ~9      !1, 'scheme'
         15        CONCAT                                           ~10     ~9, '%3A%2F%2F'
         16        FETCH_DIM_R                                      ~11     !1, 'host'
         17        CONCAT                                           ~12     ~10, ~11
         18        CONCAT                                           ~13     ~12, ''
         19        FETCH_DIM_R                                      ~14     !1, 'path'
         20        CONCAT                                           ~15     ~13, ~14
         21        CONCAT                                           ~16     ~15, '%3F'
         22        FETCH_DIM_R                                      ~17     !1, 'query'
         23        CONCAT                                           ~18     ~16, ~17
         24        ECHO                                                     ~18
    7    25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.09 ms | 1395 KiB | 19 Q