3v4l.org

run code in 300+ PHP versions simultaneously
<?php function SplitEmailAddress($email) { $result = array(); list($result['user'], $result['domain']) = explode('@', $email); return $result; } $arr = SplitEmailAddress('myuser_1@mailserver.example.com'); var_dump($arr);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mLKXL
function name:  (null)
number of ops:  8
compiled vars:  !0 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   INIT_FCALL                                               'splitemailaddress'
          1        SEND_VAL                                                 'myuser_1%40mailserver.example.com'
          2        DO_FCALL                                      0  $1      
          3        ASSIGN                                                   !0, $1
   11     4        INIT_FCALL                                               'var_dump'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                                 
          7      > RETURN                                                   1

Function splitemailaddress:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mLKXL
function name:  SplitEmailAddress
number of ops:  15
compiled vars:  !0 = $email, !1 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1        ASSIGN                                                   !1, <array>
    6     2        INIT_FCALL                                               'explode'
          3        SEND_VAL                                                 '%40'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $3      
          6        FETCH_LIST_R                                     $4      $3, 0
          7        ASSIGN_DIM                                               !1, 'user'
          8        OP_DATA                                                  $4
          9        FETCH_LIST_R                                     $6      $3, 1
         10        ASSIGN_DIM                                               !1, 'domain'
         11        OP_DATA                                                  $6
         12        FREE                                                     $3
    7    13      > RETURN                                                   !1
    8    14*     > RETURN                                                   null

End of function splitemailaddress

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
178.25 ms | 1398 KiB | 18 Q