3v4l.org

run code in 500+ PHP versions simultaneously
<?php $comment = "@name kdfjd @@ fkjd as@name @ lkjlkj @name"; var_export( preg_replace( '/(?<=^| )@([^@ ]+)/', '<a href="/$1">$0</a>', $comment ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/51BG1
function name:  (null)
number of ops:  7
compiled vars:  !0 = $comment
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '%40name+kdfjd+%40%40+fkjd+as%40name+%40+lkjlkj+%40name'
    5     1        INIT_FCALL                                                   'var_export'
    6     2        FRAMELESS_ICALL_3                preg_replace        ~2      '%2F%28%3F%3C%3D%5E%7C+%29%40%28%5B%5E%40+%5D%2B%29%2F', '%3Ca+href%3D%22%2F%241%22%3E%240%3C%2Fa%3E'
    9     3        OP_DATA                                                      !0
          4        SEND_VAL                                                     ~2
    5     5        DO_ICALL                                                     
   11     6      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
164.24 ms | 1596 KiB | 15 Q