3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo preg_replace( '/\s*\K@([^\s]+)[^\(]+\(([^)]+)\)/', '<a href="example.com/$1">$2</a>', 'hello @nickname (User)!' );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SdfWd
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'preg_replace'
    4     1        SEND_VAL                                                 '%2F%5Cs%2A%5CK%40%28%5B%5E%5Cs%5D%2B%29%5B%5E%5C%28%5D%2B%5C%28%28%5B%5E%29%5D%2B%29%5C%29%2F'
    5     2        SEND_VAL                                                 '%3Ca+href%3D%22example.com%2F%241%22%3E%242%3C%2Fa%3E'
    6     3        SEND_VAL                                                 'hello+%40nickname+%28User%29%21'
          4        DO_ICALL                                         $0      
          5        ECHO                                                     $0
    7     6      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.27 ms | 1393 KiB | 15 Q