3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = "https://m.intl.example.com/detail/detail.html?id=562858877982&amp;abtest=8&amp;rn=ab2d6eacbccdbd3d59b70b38f26c496d&amp;sid=403ef38782392a0c5298d9d7278d9005"; $result = []; parse_str(parse_url($url, PHP_URL_QUERY), $result); echo sprintf( "https://item.example.com/item.htm?spm=a230r.1.14.33.a8e813ceFcDRaX&id=%d&ns=1&abbucket=9", $result["id"] );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/10S9O
function name:  (null)
number of ops:  17
compiled vars:  !0 = $url, !1 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'https%3A%2F%2Fm.intl.example.com%2Fdetail%2Fdetail.html%3Fid%3D562858877982%26amp%3Babtest%3D8%26amp%3Brn%3Dab2d6eacbccdbd3d59b70b38f26c496d%26amp%3Bsid%3D403ef38782392a0c5298d9d7278d9005'
    4     1        ASSIGN                                                   !1, <array>
    5     2        INIT_FCALL                                               'parse_str'
          3        INIT_FCALL                                               'parse_url'
          4        SEND_VAR                                                 !0
          5        SEND_VAL                                                 6
          6        DO_ICALL                                         $4      
          7        SEND_VAR                                                 $4
          8        SEND_REF                                                 !1
          9        DO_ICALL                                                 
    6    10        INIT_FCALL                                               'sprintf'
    7    11        SEND_VAL                                                 'https%3A%2F%2Fitem.example.com%2Fitem.htm%3Fspm%3Da230r.1.14.33.a8e813ceFcDRaX%26id%3D%25d%26ns%3D1%26abbucket%3D9'
    8    12        FETCH_DIM_R                                      ~6      !1, 'id'
         13        SEND_VAL                                                 ~6
    6    14        DO_ICALL                                         $7      
    8    15        ECHO                                                     $7
    9    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.06 ms | 1012 KiB | 16 Q