3v4l.org

run code in 300+ PHP versions simultaneously
<?php $to = "ericnmk80@gmail.com"; $subject = "Test mail"; $message = "Hello. This is a simple email message."; $from = "info@blastthem.com"; $headers = 'From: eric@blastthem.com' . "\r\n" . 'Reply-To: info@blastthem.com' . "\r\n" . 'X-Mailer: PHP/' . phpversion() . "\n"; //ini_set ( "SMTP", "mail.etamogatasi.net" ); $ret = mail($to,$subject,$message,$headers); if ( $ret == '' ) { echo "Failed." . $ret; } else { echo "Mail Sent." . $ret; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 21
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NqbaK
function name:  (null)
number of ops:  24
compiled vars:  !0 = $to, !1 = $subject, !2 = $message, !3 = $from, !4 = $headers, !5 = $ret
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'ericnmk80%40gmail.com'
    3     1        ASSIGN                                                   !1, 'Test+mail'
    4     2        ASSIGN                                                   !2, 'Hello.+This+is+a+simple+email+message.'
    5     3        ASSIGN                                                   !3, 'info%40blastthem.com'
    8     4        INIT_FCALL                                               'phpversion'
          5        DO_ICALL                                         $10     
          6        CONCAT                                           ~11     'From%3A+eric%40blastthem.com%0D%0AReply-To%3A+info%40blastthem.com%0D%0AX-Mailer%3A+PHP%2F', $10
          7        CONCAT                                           ~12     ~11, '%0A'
    6     8        ASSIGN                                                   !4, ~12
   10     9        INIT_FCALL                                               'mail'
         10        SEND_VAR                                                 !0
         11        SEND_VAR                                                 !1
         12        SEND_VAR                                                 !2
         13        SEND_VAR                                                 !4
         14        DO_ICALL                                         $14     
         15        ASSIGN                                                   !5, $14
   12    16        IS_EQUAL                                                 !5, ''
         17      > JMPZ                                                     ~16, ->21
   14    18    >   CONCAT                                           ~17     'Failed.', !5
         19        ECHO                                                     ~17
         20      > JMP                                                      ->23
   18    21    >   CONCAT                                           ~18     'Mail+Sent.', !5
         22        ECHO                                                     ~18
   20    23    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.04 ms | 1395 KiB | 17 Q