3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pattern = '/((?<!\w)#\w+)/i'; $subject = <<<EOT Blablalb #toto zdjsdf #ho_yeah EOT; $result = []; preg_replace_callback('/((?<!\w)#\w+)/i', function ($matches) use(&$result) { var_dump($matches); }, $subject); var_dump($result);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mTUpZ
function name:  (null)
number of ops:  14
compiled vars:  !0 = $pattern, !1 = $subject, !2 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, '%2F%28%28%3F%3C%21%5Cw%29%23%5Cw%2B%29%2Fi'
    5     1        ASSIGN                                                   !1, 'Blablalb+%23toto+zdjsdf+%23ho_yeah'
    8     2        ASSIGN                                                   !2, <array>
   10     3        INIT_FCALL                                               'preg_replace_callback'
          4        SEND_VAL                                                 '%2F%28%28%3F%3C%21%5Cw%29%23%5Cw%2B%29%2Fi'
          5        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FmTUpZ%3A10%240'
          6        BIND_LEXICAL                                             ~6, !2
   12     7        SEND_VAL                                                 ~6
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                                 
   15    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !2
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

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

End of function %00%7Bclosure%7D%2Fin%2FmTUpZ%3A10%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.86 ms | 1395 KiB | 17 Q