3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tweet = "hello world #dontremoveme foobar http://example.com/#dontremoveme #remove #removeme #removeüäüö"; $res = preg_replace("/ #\p{L}+\b(?!\s+\p{L})/u", '', $tweet); echo $res,"\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XrRLq
function name:  (null)
number of ops:  10
compiled vars:  !0 = $tweet, !1 = $res
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'hello+world+%23dontremoveme+foobar+http%3A%2F%2Fexample.com%2F%23dontremoveme+%23remove+%23removeme+%23remove%C3%BC%C3%A4%C3%BC%C3%B6'
    4     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%2F+%23%5Cp%7BL%7D%2B%5Cb%28%3F%21%5Cs%2B%5Cp%7BL%7D%29%2Fu'
          3        SEND_VAL                                                 ''
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $3      
          6        ASSIGN                                                   !1, $3
    5     7        ECHO                                                     !1
          8        ECHO                                                     '%0A'
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
200.99 ms | 1389 KiB | 16 Q