3v4l.org

run code in 300+ PHP versions simultaneously
<?php $body = "Hello world $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/2HTrj
function name:  (null)
number of ops:  12
compiled vars:  !0 = $body, !1 = $SYMB
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ROPE_INIT                                     3  ~3      'Hello+world+'
          1        ROPE_ADD                                      1  ~3      ~3, !1
          2        ROPE_END                                      2  ~2      ~3, '+testing+foo'
          3        ASSIGN                                                   !0, ~2
    5     4        INIT_FCALL                                               'preg_replace'
          5        SEND_VAL                                                 '%2F%5C%24%28%5BA-Z%5D%7B1%2C6%7D%29%2F'
          6        SEND_VAL                                                 '%5C1'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $6      
          9        ASSIGN                                                   !0, $6
    7    10        ECHO                                                     !0
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.69 ms | 1394 KiB | 15 Q