3v4l.org

run code in 300+ PHP versions simultaneously
<?php $form = '<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/Y9dAm
function name:  (null)
number of ops:  21
compiled vars:  !0 = $form, !1 = $tmp, !2 = $from, !3 = $mail, !4 = $consumer_mail
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3Cfoo%40example.com%3E'
    5     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%3C'
          3        SEND_VAR                                                 !2
          4        DO_ICALL                                         $6      
          5        ASSIGN                                                   !1, $6
    6     6        COUNT                                            ~8      !1
          7        IS_SMALLER                                               1, ~8
          8      > JMPZ                                                     ~9, ->18
    7     9    >   INIT_FCALL                                               'explode'
         10        SEND_VAL                                                 '%3E'
         11        FETCH_DIM_R                                      ~10     !1, 1
         12        SEND_VAL                                                 ~10
         13        DO_ICALL                                         $11     
         14        ASSIGN                                                   !3, $11
    8    15        FETCH_DIM_R                                      ~13     !3, 0
         16        ASSIGN                                                   !4, ~13
         17      > JMP                                                      ->19
   10    18    >   ASSIGN                                                   !4, !2
   14    19    >   ECHO                                                     !4
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
184.25 ms | 1395 KiB | 15 Q