3v4l.org

run code in 300+ PHP versions simultaneously
<?php preg_replace_callback( '~\[admin(.+?)\[/admin\]~is', function($m) { return '[admin' . strtr(($m[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/c7LUt
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'preg_replace_callback'
    3     1        SEND_VAL                                                 '%7E%5C%5Badmin%28.%2B%3F%29%5C%5B%2Fadmin%5C%5D%7Eis'
    4     2        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2Fc7LUt%3A4%240'
    6     3        SEND_VAL                                                 ~0
    7     4        SEND_VAL                                                 '%5Badmin%5Dtest%5B%2Fadmin%5D'
          5        DO_ICALL                                                 
    8     6      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2Fc7LUt%3A4%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/c7LUt
function name:  {closure}
number of ops:  10
compiled vars:  !0 = $m
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    5     1        INIT_FCALL                                               'strtr'
          2        FETCH_DIM_R                                      ~1      !0, 1
          3        SEND_VAL                                                 ~1
          4        SEND_VAL                                                 <array>
          5        DO_ICALL                                         $2      
          6        CONCAT                                           ~3      '%5Badmin', $2
          7        CONCAT                                           ~4      ~3, '%5B%2Fadmin%5D'
          8      > RETURN                                                   ~4
    6     9*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2Fc7LUt%3A4%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.86 ms | 1386 KiB | 17 Q