3v4l.org

run code in 300+ PHP versions simultaneously
<?php // The message $message = "Line 1\r\nLine 2\r\nLine 3"; // In case any of our lines are larger than 70 characters, we should use wordwrap() $message = wordwrap($message, 70, "\r\n"); // Send if(mail('mrtnzlml@gmail.com', 'XAMPP2 test', $message)) { echo 'OK'; } else { echo 'ERR'; } $error = error_get_last(); echo '<br> -> ' . $error;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 15
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/L5sbd
function name:  (null)
number of ops:  22
compiled vars:  !0 = $message, !1 = $error
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Line+1%0D%0ALine+2%0D%0ALine+3'
    6     1        INIT_FCALL                                               'wordwrap'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 70
          4        SEND_VAL                                                 '%0D%0A'
          5        DO_ICALL                                         $3      
          6        ASSIGN                                                   !0, $3
    9     7        INIT_FCALL                                               'mail'
          8        SEND_VAL                                                 'mrtnzlml%40gmail.com'
          9        SEND_VAL                                                 'XAMPP2+test'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $5      
         12      > JMPZ                                                     $5, ->15
   10    13    >   ECHO                                                     'OK'
         14      > JMP                                                      ->16
   12    15    >   ECHO                                                     'ERR'
   15    16    >   INIT_FCALL                                               'error_get_last'
         17        DO_ICALL                                         $6      
         18        ASSIGN                                                   !1, $6
   16    19        CONCAT                                           ~8      '%3Cbr%3E+-%3E+', !1
         20        ECHO                                                     ~8
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.78 ms | 1395 KiB | 19 Q