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']="b"; $b = http_build_query($a); $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/mB14L
function name:  (null)
number of ops:  26
compiled vars:  !0 = $a, !1 = $b, !2 = $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                                         $3      
          3        ASSIGN                                                   !0, $3
    3     4        INIT_FCALL                                               'var_dump'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                                 
    4     7        ASSIGN_DIM                                               !0, 'query'
          8        OP_DATA                                                  'b'
    5     9        INIT_FCALL                                               'http_build_query'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $7      
         12        ASSIGN                                                   !1, $7
    6    13        ASSIGN                                                   !2, !0
    7    14        FETCH_DIM_R                                      ~10     !2, 'scheme'
         15        CONCAT                                           ~11     ~10, '%3A%2F%2F'
         16        FETCH_DIM_R                                      ~12     !2, 'host'
         17        CONCAT                                           ~13     ~11, ~12
         18        CONCAT                                           ~14     ~13, ''
         19        FETCH_DIM_R                                      ~15     !2, 'path'
         20        CONCAT                                           ~16     ~14, ~15
         21        CONCAT                                           ~17     ~16, '%3F'
         22        FETCH_DIM_R                                      ~18     !2, 'query'
         23        CONCAT                                           ~19     ~17, ~18
         24        ECHO                                                     ~19
    8    25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.39 ms | 1395 KiB | 19 Q