3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'äöuu'; echo preg_replace('#(&\#*\w+)[\x00-\x20]+;#u',"$1;",$string); echo "\n"; $string = 'ss'; echo preg_replace('#(&\#*\w+)[\x00-\x20]+;#u',"$1;",$string);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IMIPK
function name:  (null)
number of ops:  16
compiled vars:  !0 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%C3%A4%C3%B6uu'
    3     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%23%28%26%5C%23%2A%5Cw%2B%29%5B%5Cx00-%5Cx20%5D%2B%3B%23u'
          3        SEND_VAL                                                 '%241%3B'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        ECHO                                                     $2
    4     7        ECHO                                                     '%0A'
    5     8        ASSIGN                                                   !0, 'ss'
    6     9        INIT_FCALL                                               'preg_replace'
         10        SEND_VAL                                                 '%23%28%26%5C%23%2A%5Cw%2B%29%5B%5Cx00-%5Cx20%5D%2B%3B%23u'
         11        SEND_VAL                                                 '%241%3B'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                         $4      
         14        ECHO                                                     $4
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.9 ms | 1394 KiB | 15 Q