3v4l.org

run code in 300+ PHP versions simultaneously
<?php $to = 'Гуль Андрей Игоревич&#044; ответственный от СПб ГБОУ СПО "КОР №1" <agul@petersburgedu.ru>'; $pattern = '/(.*?)(<.*?>)/u'; var_dump(preg_replace($pattern, '"${1}" ${2}', $to));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YcEn7
function name:  (null)
number of ops:  11
compiled vars:  !0 = $to, !1 = $pattern
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%D0%93%D1%83%D0%BB%D1%8C+%D0%90%D0%BD%D0%B4%D1%80%D0%B5%D0%B9+%D0%98%D0%B3%D0%BE%D1%80%D0%B5%D0%B2%D0%B8%D1%87%26%23044%3B+%D0%BE%D1%82%D0%B2%D0%B5%D1%82%D1%81%D1%82%D0%B2%D0%B5%D0%BD%D0%BD%D1%8B%D0%B9+%D0%BE%D1%82+%D0%A1%D0%9F%D0%B1+%D0%93%D0%91%D0%9E%D0%A3+%D0%A1%D0%9F%D0%9E+%22%D0%9A%D0%9E%D0%A0+%E2%84%961%22+%3Cagul%40petersburgedu.ru%3E'
    4     1        ASSIGN                                                   !1, '%2F%28.%2A%3F%29%28%3C.%2A%3F%3E%29%2Fu'
    5     2        INIT_FCALL                                               'var_dump'
          3        INIT_FCALL                                               'preg_replace'
          4        SEND_VAR                                                 !1
          5        SEND_VAL                                                 '%22%24%7B1%7D%22+%24%7B2%7D'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $4      
          8        SEND_VAR                                                 $4
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.73 ms | 1394 KiB | 17 Q