3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url4= "http://something?blah=2&you=3&rate=22&nothing=1"; echo preg_replace("/&rate=[0-9]*/", "", $url4)."<br/>";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WtPpN
function name:  (null)
number of ops:  9
compiled vars:  !0 = $url4
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Fsomething%3Fblah%3D2%26you%3D3%26rate%3D22%26nothing%3D1'
    4     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%2F%26rate%3D%5B0-9%5D%2A%2F'
          3        SEND_VAL                                                 ''
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        CONCAT                                           ~3      $2, '%3Cbr%2F%3E'
          7        ECHO                                                     ~3
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
180.02 ms | 1394 KiB | 15 Q