3v4l.org

run code in 500+ PHP versions simultaneously
<?php $text = '--ACT-- active --INA-- inactive'; $text = preg_replace("/--ACT-- (\w+)/" , '<div class="wp"><b>1</b>$1</div>',$text); Echo preg_replace("/--INA-- (\w+)/" , '<div class="wp"><b>2</b>$1</div>',$text);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DdaFt
function name:  (null)
number of ops:  8
compiled vars:  !0 = $text
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '--ACT--+active+--INA--+inactive'
    4     1        FRAMELESS_ICALL_3                preg_replace        ~2      '%2F--ACT--+%28%5Cw%2B%29%2F', '%3Cdiv+class%3D%22wp%22%3E%3Cb%3E1%3C%2Fb%3E%241%3C%2Fdiv%3E'
          2        OP_DATA                                                      !0
          3        ASSIGN                                                       !0, ~2
    5     4        FRAMELESS_ICALL_3                preg_replace        ~4      '%2F--INA--+%28%5Cw%2B%29%2F', '%3Cdiv+class%3D%22wp%22%3E%3Cb%3E2%3C%2Fb%3E%241%3C%2Fdiv%3E'
          5        OP_DATA                                                      !0
          6        ECHO                                                         ~4
          7      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
214.4 ms | 2543 KiB | 13 Q