3v4l.org

run code in 300+ PHP versions simultaneously
<?php $comment = "@name kdfjd @@ fkjd as@name @ lkjlkj @name"; var_export( preg_replace( '/(?<=^| )@([^@ ]+)/', '<a href="/$1">@$1</a>', $comment ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Fgvov
function name:  (null)
number of ops:  10
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        INIT_FCALL                                               'preg_replace'
    7     3        SEND_VAL                                                 '%2F%28%3F%3C%3D%5E%7C+%29%40%28%5B%5E%40+%5D%2B%29%2F'
    8     4        SEND_VAL                                                 '%3Ca+href%3D%22%2F%241%22%3E%40%241%3C%2Fa%3E'
    9     5        SEND_VAR                                                 !0
    6     6        DO_ICALL                                         $2      
    9     7        SEND_VAR                                                 $2
    5     8        DO_ICALL                                                 
   11     9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.02 ms | 997 KiB | 15 Q