3v4l.org

run code in 300+ PHP versions simultaneously
<?php $from = 'foo@example.com'; $tmp = explode('<', $from); if (count($tmp) > 1) { $mail = explode('>', $tmp[1]); $consumer_mail = $mail[0]; } else { $consumer_mail = $from; } echo $consumer_mail;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 18
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rkWVl
function name:  (null)
number of ops:  21
compiled vars:  !0 = $from, !1 = $tmp, !2 = $mail, !3 = $consumer_mail
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'foo%40example.com'
    5     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%3C'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $5      
          5        ASSIGN                                                   !1, $5
    6     6        COUNT                                            ~7      !1
          7        IS_SMALLER                                               1, ~7
          8      > JMPZ                                                     ~8, ->18
    7     9    >   INIT_FCALL                                               'explode'
         10        SEND_VAL                                                 '%3E'
         11        FETCH_DIM_R                                      ~9      !1, 1
         12        SEND_VAL                                                 ~9
         13        DO_ICALL                                         $10     
         14        ASSIGN                                                   !2, $10
    8    15        FETCH_DIM_R                                      ~12     !2, 0
         16        ASSIGN                                                   !3, ~12
         17      > JMP                                                      ->19
   10    18    >   ASSIGN                                                   !3, !0
   14    19    >   ECHO                                                     !3
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.88 ms | 1386 KiB | 15 Q