3v4l.org

run code in 300+ PHP versions simultaneously
<?php function sendMail($from, $to, $body, $subject){ $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $headers .= 'From: '.$from."\r\n"; // corpo della mail mail($to, $subject, $body, $headers); } sendMail('ajeje@gmail.com', 'adus@log607.com', 'ciao', 'ciao'); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rhHf6
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   INIT_FCALL                                               'sendmail'
          1        SEND_VAL                                                 'ajeje%40gmail.com'
          2        SEND_VAL                                                 'adus%40log607.com'
          3        SEND_VAL                                                 'ciao'
          4        SEND_VAL                                                 'ciao'
          5        DO_FCALL                                      0          
   14     6      > RETURN                                                   1

Function sendmail:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rhHf6
function name:  sendMail
number of ops:  16
compiled vars:  !0 = $from, !1 = $to, !2 = $body, !3 = $subject, !4 = $headers
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        ASSIGN                                                   !4, 'MIME-Version%3A+1.0%0D%0A'
    5     5        ASSIGN_OP                                     8          !4, 'Content-type%3A+text%2Fhtml%3B+charset%3Diso-8859-1%0D%0A'
    6     6        CONCAT                                           ~7      'From%3A+', !0
          7        CONCAT                                           ~8      ~7, '%0D%0A'
          8        ASSIGN_OP                                     8          !4, ~8
    9     9        INIT_FCALL                                               'mail'
         10        SEND_VAR                                                 !1
         11        SEND_VAR                                                 !3
         12        SEND_VAR                                                 !2
         13        SEND_VAR                                                 !4
         14        DO_ICALL                                                 
   10    15      > RETURN                                                   null

End of function sendmail

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.96 ms | 1398 KiB | 16 Q