3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "Sorry that meant to say hungover and feeling sorry for myself. 😩"; $pattern = '/((?=:)|(?=;))(.*)(?=\s{1,})/i'; $str = preg_replace($pattern, '', $str); echo $str;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YZ9jh
function name:  (null)
number of ops:  10
compiled vars:  !0 = $str, !1 = $pattern
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Sorry+that+meant+to+say+hungover+and+feeling+sorry+for+myself.+%C3%B0%C5%B8%CB%9C%C2%A9'
    4     1        ASSIGN                                                   !1, '%2F%28%28%3F%3D%3A%29%7C%28%3F%3D%3B%29%29%28.%2A%29%28%3F%3D%5Cs%7B1%2C%7D%29%2Fi'
    5     2        INIT_FCALL                                               'preg_replace'
          3        SEND_VAR                                                 !1
          4        SEND_VAL                                                 ''
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $4      
          7        ASSIGN                                                   !0, $4
    7     8        ECHO                                                     !0
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.49 ms | 1394 KiB | 15 Q