3v4l.org

run code in 300+ PHP versions simultaneously
<?php $recipients = "john('john@yahoo.com'), frank('frank@gmail.com'),simon('simon@to.com')"; preg_match_all("/(?:, ?)?([^(]+)\('([^']+)'\)/", $recipients, $matches, PREG_SET_ORDER); var_export( array_map( fn($row) => ['name' => $row[1], 'email' => $row[2]], $matches ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EQUBf
function name:  (null)
number of ops:  16
compiled vars:  !0 = $recipients, !1 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, 'john%28%27john%40yahoo.com%27%29%2C+frank%28%27frank%40gmail.com%27%29%2Csimon%28%27simon%40to.com%27%29'
    6     1        INIT_FCALL                                               'preg_match_all'
          2        SEND_VAL                                                 '%2F%28%3F%3A%2C+%3F%29%3F%28%5B%5E%28%5D%2B%29%5C%28%27%28%5B%5E%27%5D%2B%29%27%5C%29%2F'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        SEND_VAL                                                 2
          6        DO_ICALL                                                 
    7     7        INIT_FCALL                                               'var_export'
    8     8        INIT_FCALL                                               'array_map'
    9     9        DECLARE_LAMBDA_FUNCTION                          ~4      [0]
         10        SEND_VAL                                                 ~4
   10    11        SEND_VAR                                                 !1
    8    12        DO_ICALL                                         $5      
   10    13        SEND_VAR                                                 $5
    7    14        DO_ICALL                                                 
   12    15      > RETURN                                                   1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EQUBf
function name:  {closure}
number of ops:  7
compiled vars:  !0 = $row
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
          1        FETCH_DIM_R                                      ~1      !0, 1
          2        INIT_ARRAY                                       ~2      ~1, 'name'
          3        FETCH_DIM_R                                      ~3      !0, 2
          4        ADD_ARRAY_ELEMENT                                ~2      ~3, 'email'
          5      > RETURN                                                   ~2
          6*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.47 ms | 1000 KiB | 16 Q