3v4l.org

run code in 300+ PHP versions simultaneously
<?php return preg_replace_callback( '/(?<=(&lt;|<)$s(&gt;|>))(.*)(?=(&lt;|<)\/$s(&gt;|>))/i', function($matches){var_dump($matches);die;}, '<tag>stuff</tag>' );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UDulN
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'preg_replace_callback'
    4     1        SEND_VAL                                                 '%2F%28%3F%3C%3D%28%26lt%3B%7C%3C%29%24s%28%26gt%3B%7C%3E%29%29%28.%2A%29%28%3F%3D%28%26lt%3B%7C%3C%29%5C%2F%24s%28%26gt%3B%7C%3E%29%29%2Fi'
    5     2        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FUDulN%3A5%240'
          3        SEND_VAL                                                 ~0
    6     4        SEND_VAL                                                 '%3Ctag%3Estuff%3C%2Ftag%3E'
          5        DO_ICALL                                         $1      
          6      > RETURN                                                   $1
    7     7*     > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FUDulN%3A5%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/UDulN
function name:  {closure}
number of ops:  6
compiled vars:  !0 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        INIT_FCALL                                               'var_dump'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
          4      > EXIT                                                     
          5*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FUDulN%3A5%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.04 ms | 1395 KiB | 17 Q