3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = "ert @param trtgg hovno @test etse et e ets @michal @hola michale"; preg_match_all("/((@[\w]+)(\s+([^@]+))?)/", $text, $matches); var_dump($matches);;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/d3mlE
function name:  (null)
number of ops:  10
compiled vars:  !0 = $text, !1 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, 'ert+%40param+trtgg+hovno+%40test+etse+et+e+ets+%40michal++%40hola+michale'
    6     1        INIT_FCALL                                               'preg_match_all'
          2        SEND_VAL                                                 '%2F%28%28%40%5B%5Cw%5D%2B%29%28%5Cs%2B%28%5B%5E%40%5D%2B%29%29%3F%29%2F'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                                 
    8     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.84 ms | 1394 KiB | 17 Q