3v4l.org

run code in 300+ PHP versions simultaneously
<?php function odesliEmail($adresa, $predmet, $odesilatel, $zprava) { $hlavicka = 'From:' . $odesilatel; $hlavicka .= "\nMIME-Version: 1.0\n"; $hlavicka .= "Content-Type: text/html; charset=\"utf-8\"\n"; $uspech = mb_send_mail($adresa, $predmet, $zprava, $hlavicka); return $uspech; } $uspech = odesliEmail('vas@email.cz', 'Test emailu', 'odesilatel@seznam.cz', 'Text zprávy'); if (!$uspech) echo('Email se nepodařilo odeslat, zkontrolujte adresu a odesílatele'); ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 10
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/FZJ2B
function name:  (null)
number of ops:  11
compiled vars:  !0 = $uspech
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_FCALL                                               'odesliemail'
          1        SEND_VAL                                                 'vas%40email.cz'
          2        SEND_VAL                                                 'Test+emailu'
          3        SEND_VAL                                                 'odesilatel%40seznam.cz'
          4        SEND_VAL                                                 'Text+zpr%C3%A1vy'
          5        DO_FCALL                                      0  $1      
          6        ASSIGN                                                   !0, $1
   12     7        BOOL_NOT                                         ~3      !0
          8      > JMPZ                                                     ~3, ->10
   13     9    >   ECHO                                                     'Email+se+nepoda%C5%99ilo+odeslat%2C+zkontrolujte+adresu+a+odes%C3%ADlatele'
   14    10    > > RETURN                                                   1

Function odesliemail:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FZJ2B
function name:  odesliEmail
number of ops:  17
compiled vars:  !0 = $adresa, !1 = $predmet, !2 = $odesilatel, !3 = $zprava, !4 = $hlavicka, !5 = $uspech
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
          3        RECV                                             !3      
    4     4        CONCAT                                           ~6      'From%3A', !2
          5        ASSIGN                                                   !4, ~6
    5     6        ASSIGN_OP                                     8          !4, '%0AMIME-Version%3A+1.0%0A'
    6     7        ASSIGN_OP                                     8          !4, 'Content-Type%3A+text%2Fhtml%3B+charset%3D%22utf-8%22%0A'
    7     8        INIT_FCALL                                               'mb_send_mail'
          9        SEND_VAR                                                 !0
         10        SEND_VAR                                                 !1
         11        SEND_VAR                                                 !3
         12        SEND_VAR                                                 !4
         13        DO_ICALL                                         $10     
         14        ASSIGN                                                   !5, $10
    8    15      > RETURN                                                   !5
    9    16*     > RETURN                                                   null

End of function odesliemail

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.88 ms | 1390 KiB | 16 Q