3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = "http://www.website.com?ap=107"; $url = str_replace("&p", "p", $url); echo $url; // will print http://www.website.com?p=107 echo "<br>"; print_r($url); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/72XcO
function name:  (null)
number of ops:  13
compiled vars:  !0 = $url
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Fwww.website.com%3Fap%3D107'
    4     1        INIT_FCALL                                               'str_replace'
          2        SEND_VAL                                                 '%26p'
          3        SEND_VAL                                                 'p'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        ASSIGN                                                   !0, $2
    5     7        ECHO                                                     !0
    6     8        ECHO                                                     '%3Cbr%3E'
    7     9        INIT_FCALL                                               'print_r'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                                 
    9    12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.41 ms | 1394 KiB | 17 Q