3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = 'My Name ## is #"P_NAM3"# and \r\n I am #\'P_AG2\'# years old #`abc`#'; $r = '#([^#]*)#'; //$r = '#(?P<name>.*?)#'; //$r = '#(\w*)#'; //preg_match_all('/'.$r.'/m', $text, $m); //var_dump($m); //$sustituciĆ³n = '${1}1,$3'; echo preg_replace('/'.$r.'/m', '$1_es', $text);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/j2QDv
function name:  (null)
number of ops:  11
compiled vars:  !0 = $text, !1 = $r
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'My+Name+%23%23+is+%23%22P_NAM3%22%23+and+%5Cr%5Cn+I+am+%23%27P_AG2%27%23+years+old+%23%60abc%60%23'
    4     1        ASSIGN                                                   !1, '%23%28%5B%5E%23%5D%2A%29%23'
   15     2        INIT_FCALL                                               'preg_replace'
          3        CONCAT                                           ~4      '%2F', !1
          4        CONCAT                                           ~5      ~4, '%2Fm'
          5        SEND_VAL                                                 ~5
          6        SEND_VAL                                                 '%241_es'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $6      
          9        ECHO                                                     $6
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.67 ms | 1394 KiB | 15 Q