3v4l.org

run code in 300+ PHP versions simultaneously
<?php $to = "takis@mailinator.com"; $subject = "Hi!"; $body = "Hi,\n\nHow are you?"; if (mail($to, $subject, $body)) { echo("<p>Email successfully sent!</p>"); } else { echo("<p>Email delivery failed…</p>"); } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/A9WTN
function name:  (null)
number of ops:  13
compiled vars:  !0 = $to, !1 = $subject, !2 = $body
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'takis%40mailinator.com'
    3     1        ASSIGN                                                   !1, 'Hi%21'
    4     2        ASSIGN                                                   !2, 'Hi%2C%0A%0AHow+are+you%3F'
    5     3        INIT_FCALL                                               'mail'
          4        SEND_VAR                                                 !0
          5        SEND_VAR                                                 !1
          6        SEND_VAR                                                 !2
          7        DO_ICALL                                         $6      
          8      > JMPZ                                                     $6, ->11
    6     9    >   ECHO                                                     '%3Cp%3EEmail+successfully+sent%21%3C%2Fp%3E'
         10      > JMP                                                      ->12
    8    11    >   ECHO                                                     '%3Cp%3EEmail+delivery+failed%E2%80%A6%3C%2Fp%3E'
   10    12    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.9 ms | 1394 KiB | 15 Q