3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pattern = "/(い)(.)(.)(.)(.)(.)(.)(.)(.)(ぬ)/u"; $replacement = "\\1<span class='red'>\\2\\3\\4\\5\\6\\7\\8\\9</span>\\10"; $string = "いろはにほへとちりぬ"; echo preg_replace($pattern, $replacement, $string); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Ur0PL
function name:  (null)
number of ops:  10
compiled vars:  !0 = $pattern, !1 = $replacement, !2 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, '%2F%28%E3%81%84%29%28.%29%28.%29%28.%29%28.%29%28.%29%28.%29%28.%29%28.%29%28%E3%81%AC%29%2Fu'
    5     1        ASSIGN                                                   !1, '%5C1%3Cspan+class%3D%27red%27%3E%5C2%5C3%5C4%5C5%5C6%5C7%5C8%5C9%3C%2Fspan%3E%5C10'
    6     2        ASSIGN                                                   !2, '%E3%81%84%E3%82%8D%E3%81%AF%E3%81%AB%E3%81%BB%E3%81%B8%E3%81%A8%E3%81%A1%E3%82%8A%E3%81%AC'
    8     3        INIT_FCALL                                               'preg_replace'
          4        SEND_VAR                                                 !0
          5        SEND_VAR                                                 !1
          6        SEND_VAR                                                 !2
          7        DO_ICALL                                         $6      
          8        ECHO                                                     $6
    9     9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.82 ms | 1394 KiB | 15 Q