3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $Contenu = ' $mail = array(); $tab_options = explode("\n",str_replace("\r","",$page["destinataires"])); foreach($tab_options as $key=>$tab) { $tab_option = explode("|",$tab); if(isset($tab_option[0]) && $tab_option[0]) $mail["emails_to"][$key]["email_to"] = (isset($tab_option[0]) && $tab_option[0]?$tab_option[0]:""); if(isset($tab_option[1]) && $tab_option[1]) $mail["emails_to"][$key]["email_to_name"] = (isset($tab_option[1]) && $tab_option[1]?$tab_option[1]:""); } $mail["email_from"] = "test"; $mail["email_from_name"] = ucfirst(request("nom"))." ".ucfirst(request("prenom")); $mail["subject"] = "[".variable_get("rs")."] - Message du site"; $mail["message"] = "Bonjour,<br /><br />Un prospect souhaiterait avoir des renseignements. <br />Voici les informations le concernant :<br />"; foreach($form_fields as $key=>$value) '; $CorrectionHTML = '$mail["email_from"] = request("email");'; $NouveauContenu = preg_replace('/\\$mail\\[\\"email_from\\"\\](.+);/imsU', $CorrectionHTML , $Contenu); //$NouveauContenu = preg_replace("/\$mail["email_from"](.+);/",$CorrectionHTML,$Contenu); //Previous echo $NouveauContenu ;
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
$mail = array(); $tab_options = explode("\n",str_replace("\r","",$page["destinataires"])); foreach($tab_options as $key=>$tab) { $tab_option = explode("|",$tab); if(isset($tab_option[0]) && $tab_option[0]) $mail["emails_to"][$key]["email_to"] = (isset($tab_option[0]) && $tab_option[0]?$tab_option[0]:""); if(isset($tab_option[1]) && $tab_option[1]) $mail["emails_to"][$key]["email_to_name"] = (isset($tab_option[1]) && $tab_option[1]?$tab_option[1]:""); } $mail["email_from"] = request("email"); $mail["email_from_name"] = ucfirst(request("nom"))." ".ucfirst(request("prenom")); $mail["subject"] = "[".variable_get("rs")."] - Message du site"; $mail["message"] = "Bonjour,<br /><br />Un prospect souhaiterait avoir des renseignements. <br />Voici les informations le concernant :<br />"; foreach($form_fields as $key=>$value)
Output for hhvm-3.10.0

Process exited with code 153.