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); 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/JkKCh
function name:  (null)
number of ops:  25
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        FETCH_DIM_R                                      ~9      !2, 'scheme'
         14        CONCAT                                           ~10     ~9, '%3A%2F%2F'
         15        FETCH_DIM_R                                      ~11     !2, 'host'
         16        CONCAT                                           ~12     ~10, ~11
         17        CONCAT                                           ~13     ~12, ''
         18        FETCH_DIM_R                                      ~14     !2, 'path'
         19        CONCAT                                           ~15     ~13, ~14
         20        CONCAT                                           ~16     ~15, '%3F'
         21        FETCH_DIM_R                                      ~17     !2, 'query'
         22        CONCAT                                           ~18     ~16, ~17
         23        ECHO                                                     ~18
    7    24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179.18 ms | 1395 KiB | 19 Q