3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = 'https://example.com/t/c/?cid=4924&sub1=342&asdjjn=2333'; $parts = parse_url($url); $newUrl = 'https://example.com/t/t?ex=823948923849'; printf('%s&%s', $newUrl, $parts['query']);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dHiUY
function name:  (null)
number of ops:  13
compiled vars:  !0 = $url, !1 = $parts, !2 = $newUrl
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'https%3A%2F%2Fexample.com%2Ft%2Fc%2F%3Fcid%3D4924%26sub1%3D342%26asdjjn%3D2333'
    5     1        INIT_FCALL                                               'parse_url'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !1, $4
    8     5        ASSIGN                                                   !2, 'https%3A%2F%2Fexample.com%2Ft%2Ft%3Fex%3D823948923849'
   10     6        INIT_FCALL                                               'printf'
          7        SEND_VAL                                                 '%25s%26%25s'
          8        SEND_VAR                                                 !2
          9        FETCH_DIM_R                                      ~7      !1, 'query'
         10        SEND_VAL                                                 ~7
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155 ms | 1394 KiB | 17 Q