3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_POST['keywords']="sample products!@, products#$#, sample"; $keywords = preg_replace("/ui/[^A-Z, ]/i", '',($_POST['keywords'])); echo $keywords;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eE7aV
function name:  (null)
number of ops:  13
compiled vars:  !0 = $keywords
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   FETCH_W                      global              $1      '_POST'
          1        ASSIGN_DIM                                               $1, 'keywords'
          2        OP_DATA                                                  'sample+products%21%40%2C+products%23%24%23%2C+sample'
    3     3        INIT_FCALL                                               'preg_replace'
          4        SEND_VAL                                                 '%2Fui%2F%5B%5EA-Z%2C+%5D%2Fi'
          5        SEND_VAL                                                 ''
          6        FETCH_R                      global              ~3      '_POST'
          7        FETCH_DIM_R                                      ~4      ~3, 'keywords'
          8        SEND_VAL                                                 ~4
          9        DO_ICALL                                         $5      
         10        ASSIGN                                                   !0, $5
    4    11        ECHO                                                     !0
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.15 ms | 1385 KiB | 15 Q