3v4l.org

run code in 300+ 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:  14
compiled vars:  !0 = $text
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '--ACT--+active+--INA--+inactive'
    4     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%2F--ACT--+%28%5Cw%2B%29%2F'
          3        SEND_VAL                                                 '%3Cdiv+class%3D%22wp%22%3E%3Cb%3E1%3C%2Fb%3E%241%3C%2Fdiv%3E'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        ASSIGN                                                   !0, $2
    5     7        INIT_FCALL                                               'preg_replace'
          8        SEND_VAL                                                 '%2F--INA--+%28%5Cw%2B%29%2F'
          9        SEND_VAL                                                 '%3Cdiv+class%3D%22wp%22%3E%3Cb%3E2%3C%2Fb%3E%241%3C%2Fdiv%3E'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $4      
         12        ECHO                                                     $4
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.88 ms | 1009 KiB | 14 Q