3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_POST['toevoeging'] = "Hoeplakee"; $Body = "<p><strong>Bericht van mijn te gekke website</strong></p> Telefoonnummer: ".$phone." <br /> Straatnaam: ".$phone." <br /> Huisnummer: ".$phone." <br /> ".((isset($_POST['toevoeging'])) ? 'Toevoeging:' .$_POST['toevoeging'].'<br />' : NULL)." Bericht: $message "; echo $mail->Body;
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Warning: Undefined variable $phone in /in/CBGfg on line 5 Warning: Undefined variable $phone in /in/CBGfg on line 6 Warning: Undefined variable $phone in /in/CBGfg on line 7 Warning: Undefined variable $message in /in/CBGfg on line 9 Warning: Undefined variable $mail in /in/CBGfg on line 12 Warning: Attempt to read property "Body" on null in /in/CBGfg on line 12
Output for 7.2.0 - 7.2.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.33
Notice: Undefined variable: phone in /in/CBGfg on line 5 Notice: Undefined variable: phone in /in/CBGfg on line 6 Notice: Undefined variable: phone in /in/CBGfg on line 7 Notice: Undefined variable: message in /in/CBGfg on line 9 Notice: Undefined variable: mail in /in/CBGfg on line 12 Notice: Trying to get property 'Body' of non-object in /in/CBGfg on line 12
Output for 7.3.32 - 7.3.33
Output for 7.0.0 - 7.0.33, 7.1.0 - 7.1.33
Notice: Undefined variable: phone in /in/CBGfg on line 5 Notice: Undefined variable: phone in /in/CBGfg on line 6 Notice: Undefined variable: phone in /in/CBGfg on line 7 Notice: Undefined variable: message in /in/CBGfg on line 9 Notice: Undefined variable: mail in /in/CBGfg on line 12 Notice: Trying to get property of non-object in /in/CBGfg on line 12
Output for 5.5.0 - 5.5.38, 5.6.0 - 5.6.40
Notice: Undefined variable: phone in /in/CBGfg on line 5 Notice: Undefined variable: phone in /in/CBGfg on line 6 Notice: Undefined variable: phone in /in/CBGfg on line 7 Notice: Undefined variable: message in /in/CBGfg on line 10 Notice: Undefined variable: mail in /in/CBGfg on line 12 Notice: Trying to get property of non-object in /in/CBGfg on line 12

preferences:
263.04 ms | 402 KiB | 327 Q