3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set( 'display_errors', 1 ); error_reporting( E_ALL ); $from = "dvsaikumar07@outlook.com"; $to = "dvsaikumar@live.com"; $subject = "PHP Mail Test script"; $message = "This is a test to check the PHP Mail functionality"; $headers = "From:" . $from; mail($to,$subject,$message, $headers); echo "Test email sent"; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/22KUS
function name:  (null)
number of ops:  21
compiled vars:  !0 = $from, !1 = $to, !2 = $subject, !3 = $message, !4 = $headers
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'ini_set'
          1        SEND_VAL                                                 'display_errors'
          2        SEND_VAL                                                 1
          3        DO_ICALL                                                 
    3     4        INIT_FCALL                                               'error_reporting'
          5        SEND_VAL                                                 32767
          6        DO_ICALL                                                 
    4     7        ASSIGN                                                   !0, 'dvsaikumar07%40outlook.com'
    5     8        ASSIGN                                                   !1, 'dvsaikumar%40live.com'
    6     9        ASSIGN                                                   !2, 'PHP+Mail+Test+script'
    7    10        ASSIGN                                                   !3, 'This+is+a+test+to+check+the+PHP+Mail+functionality'
    8    11        CONCAT                                           ~11     'From%3A', !0
         12        ASSIGN                                                   !4, ~11
    9    13        INIT_FCALL                                               'mail'
         14        SEND_VAR                                                 !1
         15        SEND_VAR                                                 !2
         16        SEND_VAR                                                 !3
         17        SEND_VAR                                                 !4
         18        DO_ICALL                                                 
   10    19        ECHO                                                     'Test+email+sent'
   11    20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.35 ms | 1395 KiB | 19 Q