3v4l.org

run code in 300+ PHP versions simultaneously
<?php $emails = str_replace(' ','','ben@wearejh.com, john@wearejh.com, mike@wearejh.com'); $recipientsArray = preg_grep('/[-0-9a-zA-Z.+_]+@[-0-9a-zA-Z.+_]+\.[a-zA-Z]+/', explode(' ', $emails)); var_dump($recipientsArray);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FgpKl
function name:  (null)
number of ops:  19
compiled vars:  !0 = $emails, !1 = $recipientsArray
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'str_replace'
          1        SEND_VAL                                                 '+'
          2        SEND_VAL                                                 ''
          3        SEND_VAL                                                 'ben%40wearejh.com%2C++++++++++++john%40wearejh.com%2C++++++++++++++++++++++++++++++mike%40wearejh.com'
          4        DO_ICALL                                         $2      
          5        ASSIGN                                                   !0, $2
    3     6        INIT_FCALL                                               'preg_grep'
          7        SEND_VAL                                                 '%2F%5B-0-9a-zA-Z.%2B_%5D%2B%40%5B-0-9a-zA-Z.%2B_%5D%2B%5C.%5Ba-zA-Z%5D%2B%2F'
          8        INIT_FCALL                                               'explode'
          9        SEND_VAL                                                 '+'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $4      
         12        SEND_VAR                                                 $4
         13        DO_ICALL                                         $5      
         14        ASSIGN                                                   !1, $5
    5    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !1
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.45 ms | 940 KiB | 22 Q