3v4l.org

run code in 300+ PHP versions simultaneously
<?php $urlRegex = '#(^|\\b)https?:\/\/[\w.?;:\)"=&_/\#]+#'; $text = 'example url [http://www.example.com/path/index?ATY345=6&index=2#utm=feafet/] blabhablha'; $text = preg_replace($urlRegex, '', $text); print("text is $text \n");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4jpfs
function name:  (null)
number of ops:  13
compiled vars:  !0 = $urlRegex, !1 = $text
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%23%28%5E%7C%5Cb%29https%3F%3A%5C%2F%5C%2F%5B%5Cw.%3F%3B%3A%5C%29%22%3D%26_%2F%5C%23%5D%2B%23'
    4     1        ASSIGN                                                   !1, 'example+url+%5Bhttp%3A%2F%2Fwww.example.com%2Fpath%2Findex%3FATY345%3D6%26index%3D2%23utm%3Dfeafet%2F%5D+blabhablha'
    5     2        INIT_FCALL                                               'preg_replace'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 ''
          5        SEND_VAR                                                 !1
          6        DO_ICALL                                         $4      
          7        ASSIGN                                                   !1, $4
    6     8        ROPE_INIT                                     3  ~7      'text+is+'
          9        ROPE_ADD                                      1  ~7      ~7, !1
         10        ROPE_END                                      2  ~6      ~7, '+%0A'
         11        ECHO                                                     ~6
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
186.33 ms | 1394 KiB | 15 Q