3v4l.org

run code in 300+ PHP versions simultaneously
<?php $SYMB = "[This was filled in]"; $body = "Hello world \$SYMB $SYMB testing foo"; $body = preg_replace('/\$([A-Z]{1,6})/', '\\1', $body); print $body;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/P9dP7
function name:  (null)
number of ops:  13
compiled vars:  !0 = $SYMB, !1 = $body
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%5BThis+was+filled+in%5D'
    4     1        ROPE_INIT                                     3  ~4      'Hello+world+%24SYMB+'
          2        ROPE_ADD                                      1  ~4      ~4, !0
          3        ROPE_END                                      2  ~3      ~4, '+testing+foo'
          4        ASSIGN                                                   !1, ~3
    6     5        INIT_FCALL                                               'preg_replace'
          6        SEND_VAL                                                 '%2F%5C%24%28%5BA-Z%5D%7B1%2C6%7D%29%2F'
          7        SEND_VAL                                                 '%5C1'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                         $7      
         10        ASSIGN                                                   !1, $7
    8    11        ECHO                                                     !1
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
189.81 ms | 1394 KiB | 15 Q