3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = '/\\\\o\{([^}]+)\}/m'; $str = 'hello \\o{test} how are you?'; $subst = '<span>$1</span>'; echo preg_replace($re, $subst, $str); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FiOKO
function name:  (null)
number of ops:  10
compiled vars:  !0 = $re, !1 = $str, !2 = $subst
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%2F%5C%5Co%5C%7B%28%5B%5E%7D%5D%2B%29%5C%7D%2Fm'
    3     1        ASSIGN                                                   !1, 'hello+%5Co%7Btest%7D+how+are+you%3F'
    4     2        ASSIGN                                                   !2, '%3Cspan%3E%241%3C%2Fspan%3E'
    5     3        INIT_FCALL                                               'preg_replace'
          4        SEND_VAR                                                 !0
          5        SEND_VAR                                                 !2
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                         $6      
          8        ECHO                                                     $6
    6     9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.01 ms | 1394 KiB | 15 Q