3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo(preg_replace('~[admin(.+?)[/admin]~ie', '\'[admin\' . strtr(\'$1\', array("\n" => \'&#13;\', \' \' => \' &#32;\')) . \'[/admin]\'', '[admin]test[/admin]'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fHcQk
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'preg_replace'
          1        SEND_VAL                                                 '%7E%5Badmin%28.%2B%3F%29%5B%2Fadmin%5D%7Eie'
          2        SEND_VAL                                                 '%27%5Badmin%27+.+strtr%28%27%241%27%2C+array%28%22%5Cn%22+%3D%3E+%27%26%2313%3B%27%2C+%27++%27+%3D%3E+%27+%26%2332%3B%27%29%29+.+%27%5B%2Fadmin%5D%27'
          3        SEND_VAL                                                 '%5Badmin%5Dtest%5B%2Fadmin%5D'
          4        DO_ICALL                                         $0      
          5        ECHO                                                     $0
          6      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.24 ms | 1385 KiB | 15 Q