3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str2 = "+Kirollos @KyleSmith"; echo "Before: $str2"; $str2 = preg_replace('#[\@\*\&\%\+\~\#\;\:\\\/\"\']#', '', $str2); echo "After: $str2";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1hsal
function name:  (null)
number of ops:  14
compiled vars:  !0 = $str2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%2BKirollos+%40KyleSmith'
    3     1        NOP                                                      
          2        FAST_CONCAT                                      ~2      'Before%3A+', !0
          3        ECHO                                                     ~2
    4     4        INIT_FCALL                                               'preg_replace'
          5        SEND_VAL                                                 '%23%5B%5C%40%5C%2A%5C%26%5C%25%5C%2B%5C%7E%5C%23%5C%3B%5C%3A%5C%5C%2F%5C%22%27%5D%23'
          6        SEND_VAL                                                 ''
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $3      
          9        ASSIGN                                                   !0, $3
    5    10        NOP                                                      
         11        FAST_CONCAT                                      ~5      'After%3A+', !0
         12        ECHO                                                     ~5
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.46 ms | 1385 KiB | 15 Q