3v4l.org

run code in 300+ PHP versions simultaneously
<?php //$string = 'привет меня зовут <b>Файл</b> а кто ты.'; // echo preg_replace('/<b>(.*?)<\/b>/i', '<b>Мой файл</b>', $string); $string = 'April 15, 2003'; $pattern = '/(\w+) (\d+), (\d+)/i'; $replacement = '${1}1,$3'; echo preg_replace($pattern, $replacement, $string);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uH2Es
function name:  (null)
number of ops:  10
compiled vars:  !0 = $string, !1 = $pattern, !2 = $replacement
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                                   !0, 'April+15%2C+2003'
    6     1        ASSIGN                                                   !1, '%2F%28%5Cw%2B%29+%28%5Cd%2B%29%2C+%28%5Cd%2B%29%2Fi'
    7     2        ASSIGN                                                   !2, '%24%7B1%7D1%2C%243'
    8     3        INIT_FCALL                                               'preg_replace'
          4        SEND_VAR                                                 !1
          5        SEND_VAR                                                 !2
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $6      
          8        ECHO                                                     $6
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.9 ms | 1394 KiB | 15 Q