3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php // On initialise les variables function global_var($var) { global $HTTP_POST_VARS, $HTTP_GET_VARS; if (!empty($HTTP_POST_VARS[$var])) { return $HTTP_POST_VARS[$var]; }elseif (!empty($HTTP_GET_VARS[$var])) { return $HTTP_GET_VARS[$var]; }else{ return ''; } } $key ="2141252136337571"; // pour Plaque-funeraire.fr $params = array(); $params['vads_site_id'] = "63837004"; $params['vads_amount'] = $montant; $params['vads_currency'] = "978"; $params['vads_ctx_mode'] = "PRODUCTION"; $params['vads_page_action'] = "PAYMENT"; $params['vads_action_mode'] = "INTERACTIVE"; $params['vads_payment_config'] = "SINGLE"; $params['vads_version'] = "V2"; $params['vads_url_success'] = "http://www.Plaque-funeraire.fr/succespaiement.php"; $params['vads_url_return'] = "http://www.Plaque-funeraire.fr"; $params['vads_url_cancel'] = "http://www.Plaque-funeraire.fr/echecpaiement.php"; $params['vads_validation_mode'] = 0; $params['vads_shop_url'] = "http://www.Plaque-funeraire.fr"; $params['vads_shop_name'] = "Plaque-funeraire.fr - RENAUD Gravure"; $params['vads_cust_name'] = $nom; $params['vads_cust_email'] = $email; $params['vads_cust_address'] = $adresse1; $params['vads_cust_city'] = $ville; $params['vads_cust_zip'] = $codepostal; $params['vads_cust_state'] = $pays; $params['vads_cust_cell_phone'] = utf8_encode($tel1); $params['vads_order_id'] = utf8_encode($referenceproduit); if ($language){$params['vads_language'] = $language;} //$params['vads_order_info'] = $info; $ts = time(); $params['vads_trans_date'] = gmdate("YmdHis",$ts); $filename = "count.txt"; $fp = fopen($filename, 'r+'); flock($fp, LOCK_EX); $count = (int)fread($fp,6); $count++; if($count<0 || $count > 899999) {$count=0;} fseek($fp,0); ftruncate($fp,0); fwrite($fp,$count); flock($fp, LOCK_UN); fclose($fp); $trans_id = sprintf("%06d",$count); $params['vads_trans_id'] = $trans_id; ksort($params); $contenu_signature = ""; foreach ($params as $nom => $valeur) {$contenu_signature .= $valeur."+";} $contenu_signature .= $key; $params['signature'] = sha1($contenu_signature); ?> <form name="postsystempay" method="POST" action="https://paiement.systempay.fr/vads-payment/"> <br /><br /><br /> Chargement du terminal de paiement s&eacute;curis&eacute; : CyberPlus Banque Populaire.<br /> Merci de patienter quelques instants.<br /><br /> Chargement en cours ... <?php foreach($params as $nom => $valeur) { echo '<input type="hidden" name="'.$nom.'" value="'.$valeur.'"/>'; } ?> </form> <script> window.document.postsystempay.submit(); </script> </html>
Output for 5.3.0 - 7.2.0
Notice: Undefined variable: montant in /in/gepl6 on line 19 Notice: Undefined variable: nom in /in/gepl6 on line 32 Notice: Undefined variable: email in /in/gepl6 on line 33 Notice: Undefined variable: adresse1 in /in/gepl6 on line 34 Notice: Undefined variable: ville in /in/gepl6 on line 35 Notice: Undefined variable: codepostal in /in/gepl6 on line 36 Notice: Undefined variable: pays in /in/gepl6 on line 37 Notice: Undefined variable: tel1 in /in/gepl6 on line 38 Notice: Undefined variable: referenceproduit in /in/gepl6 on line 39 Notice: Undefined variable: language in /in/gepl6 on line 40 Warning: fopen(count.txt): failed to open stream: No such file or directory in /in/gepl6 on line 46 Warning: flock() expects parameter 1 to be resource, boolean given in /in/gepl6 on line 47 Warning: fread() expects parameter 1 to be resource, boolean given in /in/gepl6 on line 48 Warning: fseek() expects parameter 1 to be resource, boolean given in /in/gepl6 on line 51 Warning: ftruncate() expects parameter 1 to be resource, boolean given in /in/gepl6 on line 52 Warning: fwrite() expects parameter 1 to be resource, boolean given in /in/gepl6 on line 53 Warning: flock() expects parameter 1 to be resource, boolean given in /in/gepl6 on line 54 Warning: fclose() expects parameter 1 to be resource, boolean given in /in/gepl6 on line 55 <form name="postsystempay" method="POST" action="https://paiement.systempay.fr/vads-payment/"> <br /><br /><br /> Chargement du terminal de paiement s&eacute;curis&eacute; : CyberPlus Banque Populaire.<br /> Merci de patienter quelques instants.<br /><br /> Chargement en cours ... <input type="hidden" name="vads_action_mode" value="INTERACTIVE"/><input type="hidden" name="vads_amount" value=""/><input type="hidden" name="vads_ctx_mode" value="PRODUCTION"/><input type="hidden" name="vads_currency" value="978"/><input type="hidden" name="vads_cust_address" value=""/><input type="hidden" name="vads_cust_cell_phone" value=""/><input type="hidden" name="vads_cust_city" value=""/><input type="hidden" name="vads_cust_email" value=""/><input type="hidden" name="vads_cust_name" value=""/><input type="hidden" name="vads_cust_state" value=""/><input type="hidden" name="vads_cust_zip" value=""/><input type="hidden" name="vads_order_id" value=""/><input type="hidden" name="vads_page_action" value="PAYMENT"/><input type="hidden" name="vads_payment_config" value="SINGLE"/><input type="hidden" name="vads_shop_name" value="Plaque-funeraire.fr - RENAUD Gravure"/><input type="hidden" name="vads_shop_url" value="http://www.Plaque-funeraire.fr"/><input type="hidden" name="vads_site_id" value="63837004"/><input type="hidden" name="vads_trans_date" value="20150727104852"/><input type="hidden" name="vads_trans_id" value="000001"/><input type="hidden" name="vads_url_cancel" value="http://www.Plaque-funeraire.fr/echecpaiement.php"/><input type="hidden" name="vads_url_return" value="http://www.Plaque-funeraire.fr"/><input type="hidden" name="vads_url_success" value="http://www.Plaque-funeraire.fr/succespaiement.php"/><input type="hidden" name="vads_validation_mode" value="0"/><input type="hidden" name="vads_version" value="V2"/><input type="hidden" name="signature" value="e10b74628741fdf37afb3687eb81c952e1b9db53"/></form> <script> window.document.postsystempay.submit(); </script> </html>
Output for 5.0.4 - 5.2.17
Notice: Undefined variable: montant in /in/gepl6 on line 19 Notice: Undefined variable: nom in /in/gepl6 on line 32 Notice: Undefined variable: email in /in/gepl6 on line 33 Notice: Undefined variable: adresse1 in /in/gepl6 on line 34 Notice: Undefined variable: ville in /in/gepl6 on line 35 Notice: Undefined variable: codepostal in /in/gepl6 on line 36 Notice: Undefined variable: pays in /in/gepl6 on line 37 Notice: Undefined variable: tel1 in /in/gepl6 on line 38 Notice: Undefined variable: referenceproduit in /in/gepl6 on line 39 Notice: Undefined variable: language in /in/gepl6 on line 40 Warning: fopen(count.txt): failed to open stream: No such file or directory in /in/gepl6 on line 46 Warning: flock() expects parameter 1 to be resource, boolean given in /in/gepl6 on line 47 Warning: fread(): supplied argument is not a valid stream resource in /in/gepl6 on line 48 Warning: fseek(): supplied argument is not a valid stream resource in /in/gepl6 on line 51 Warning: ftruncate(): supplied argument is not a valid stream resource in /in/gepl6 on line 52 Warning: fwrite(): supplied argument is not a valid stream resource in /in/gepl6 on line 53 Warning: flock() expects parameter 1 to be resource, boolean given in /in/gepl6 on line 54 Warning: fclose(): supplied argument is not a valid stream resource in /in/gepl6 on line 55 <form name="postsystempay" method="POST" action="https://paiement.systempay.fr/vads-payment/"> <br /><br /><br /> Chargement du terminal de paiement s&eacute;curis&eacute; : CyberPlus Banque Populaire.<br /> Merci de patienter quelques instants.<br /><br /> Chargement en cours ... <input type="hidden" name="vads_action_mode" value="INTERACTIVE"/><input type="hidden" name="vads_amount" value=""/><input type="hidden" name="vads_ctx_mode" value="PRODUCTION"/><input type="hidden" name="vads_currency" value="978"/><input type="hidden" name="vads_cust_address" value=""/><input type="hidden" name="vads_cust_cell_phone" value=""/><input type="hidden" name="vads_cust_city" value=""/><input type="hidden" name="vads_cust_email" value=""/><input type="hidden" name="vads_cust_name" value=""/><input type="hidden" name="vads_cust_state" value=""/><input type="hidden" name="vads_cust_zip" value=""/><input type="hidden" name="vads_order_id" value=""/><input type="hidden" name="vads_page_action" value="PAYMENT"/><input type="hidden" name="vads_payment_config" value="SINGLE"/><input type="hidden" name="vads_shop_name" value="Plaque-funeraire.fr - RENAUD Gravure"/><input type="hidden" name="vads_shop_url" value="http://www.Plaque-funeraire.fr"/><input type="hidden" name="vads_site_id" value="63837004"/><input type="hidden" name="vads_trans_date" value="20150727104852"/><input type="hidden" name="vads_trans_id" value="000001"/><input type="hidden" name="vads_url_cancel" value="http://www.Plaque-funeraire.fr/echecpaiement.php"/><input type="hidden" name="vads_url_return" value="http://www.Plaque-funeraire.fr"/><input type="hidden" name="vads_url_success" value="http://www.Plaque-funeraire.fr/succespaiement.php"/><input type="hidden" name="vads_validation_mode" value="0"/><input type="hidden" name="vads_version" value="V2"/><input type="hidden" name="signature" value="e10b74628741fdf37afb3687eb81c952e1b9db53"/></form> <script> window.document.postsystempay.submit(); </script> </html>
Output for 5.0.0 - 5.0.3
Notice: Undefined variable: montant in /in/gepl6 on line 19 Notice: Undefined variable: nom in /in/gepl6 on line 32 Notice: Undefined variable: email in /in/gepl6 on line 33 Notice: Undefined variable: adresse1 in /in/gepl6 on line 34 Notice: Undefined variable: ville in /in/gepl6 on line 35 Notice: Undefined variable: codepostal in /in/gepl6 on line 36 Notice: Undefined variable: pays in /in/gepl6 on line 37 Notice: Undefined variable: tel1 in /in/gepl6 on line 38 Notice: Undefined variable: referenceproduit in /in/gepl6 on line 39 Notice: Undefined variable: language in /in/gepl6 on line 40 Warning: fopen(count.txt): failed to open stream: No such file or directory in /in/gepl6 on line 46 Warning: flock() expects parameter 1 to be resource, boolean given in /in/gepl6 on line 47 Warning: fread(): supplied argument is not a valid stream resource in /in/gepl6 on line 48 Warning: fseek(): supplied argument is not a valid stream resource in /in/gepl6 on line 51 Warning: ftruncate(): supplied argument is not a valid stream resource in /in/gepl6 on line 52 Warning: fwrite(): supplied argument is not a valid stream resource in /in/gepl6 on line 53 Warning: flock() expects parameter 1 to be resource, boolean given in /in/gepl6 on line 54 Warning: fclose(): supplied argument is not a valid stream resource in /in/gepl6 on line 55 <form name="postsystempay" method="POST" action="https://paiement.systempay.fr/vads-payment/"> <br /><br /><br /> Chargement du terminal de paiement s&eacute;curis&eacute; : CyberPlus Banque Populaire.<br /> Merci de patienter quelques instants.<br /><br /> Chargement en cours ... <input type="hidden" name="vads_action_mode" value="INTERACTIVE"/><input type="hidden" name="vads_amount" value=""/><input type="hidden" name="vads_ctx_mode" value="PRODUCTION"/><input type="hidden" name="vads_currency" value="978"/><input type="hidden" name="vads_cust_address" value=""/><input type="hidden" name="vads_cust_cell_phone" value=""/><input type="hidden" name="vads_cust_city" value=""/><input type="hidden" name="vads_cust_email" value=""/><input type="hidden" name="vads_cust_name" value=""/><input type="hidden" name="vads_cust_state" value=""/><input type="hidden" name="vads_cust_zip" value=""/><input type="hidden" name="vads_order_id" value=""/><input type="hidden" name="vads_page_action" value="PAYMENT"/><input type="hidden" name="vads_payment_config" value="SINGLE"/><input type="hidden" name="vads_shop_name" value="Plaque-funeraire.fr - RENAUD Gravure"/><input type="hidden" name="vads_shop_url" value="http://www.Plaque-funeraire.fr"/><input type="hidden" name="vads_site_id" value="63837004"/><input type="hidden" name="vads_trans_date" value="20150727104852"/><input type="hidden" name="vads_trans_id" value="000001"/><input type="hidden" name="vads_url_cancel" value="http://www.Plaque-funeraire.fr/echecpaiement.php"/><input type="hidden" name="vads_url_return" value="http://www.Plaque-funeraire.fr"/><input type="hidden" name="vads_url_success" value="http://www.Plaque-funeraire.fr/succespaiement.php"/><input type="hidden" name="vads_validation_mode" value="0"/><input type="hidden" name="vads_version" value="V2"/><input type="hidden" name="signature" value="e10b74628741fdf37afb3687eb81c952e1b9db53"/></form> <script> window.document.postsystempay.submit(); </script> </html>
Output for 4.3.2 - 4.4.9
Notice: Undefined variable: montant in /in/gepl6 on line 19 Notice: Undefined variable: nom in /in/gepl6 on line 32 Notice: Undefined variable: email in /in/gepl6 on line 33 Notice: Undefined variable: adresse1 in /in/gepl6 on line 34 Notice: Undefined variable: ville in /in/gepl6 on line 35 Notice: Undefined variable: codepostal in /in/gepl6 on line 36 Notice: Undefined variable: pays in /in/gepl6 on line 37 Notice: Undefined variable: tel1 in /in/gepl6 on line 38 Notice: Undefined variable: referenceproduit in /in/gepl6 on line 39 Notice: Undefined variable: language in /in/gepl6 on line 40 Warning: fopen(count.txt): failed to open stream: No such file or directory in /in/gepl6 on line 46 Warning: flock(): supplied argument is not a valid stream resource in /in/gepl6 on line 47 Warning: fread(): supplied argument is not a valid stream resource in /in/gepl6 on line 48 Warning: fseek(): supplied argument is not a valid stream resource in /in/gepl6 on line 51 Warning: ftruncate(): supplied argument is not a valid stream resource in /in/gepl6 on line 52 Warning: fwrite(): supplied argument is not a valid stream resource in /in/gepl6 on line 53 Warning: flock(): supplied argument is not a valid stream resource in /in/gepl6 on line 54 Warning: fclose(): supplied argument is not a valid stream resource in /in/gepl6 on line 55 <form name="postsystempay" method="POST" action="https://paiement.systempay.fr/vads-payment/"> <br /><br /><br /> Chargement du terminal de paiement s&eacute;curis&eacute; : CyberPlus Banque Populaire.<br /> Merci de patienter quelques instants.<br /><br /> Chargement en cours ... <input type="hidden" name="vads_action_mode" value="INTERACTIVE"/><input type="hidden" name="vads_amount" value=""/><input type="hidden" name="vads_ctx_mode" value="PRODUCTION"/><input type="hidden" name="vads_currency" value="978"/><input type="hidden" name="vads_cust_address" value=""/><input type="hidden" name="vads_cust_cell_phone" value=""/><input type="hidden" name="vads_cust_city" value=""/><input type="hidden" name="vads_cust_email" value=""/><input type="hidden" name="vads_cust_name" value=""/><input type="hidden" name="vads_cust_state" value=""/><input type="hidden" name="vads_cust_zip" value=""/><input type="hidden" name="vads_order_id" value=""/><input type="hidden" name="vads_page_action" value="PAYMENT"/><input type="hidden" name="vads_payment_config" value="SINGLE"/><input type="hidden" name="vads_shop_name" value="Plaque-funeraire.fr - RENAUD Gravure"/><input type="hidden" name="vads_shop_url" value="http://www.Plaque-funeraire.fr"/><input type="hidden" name="vads_site_id" value="63837004"/><input type="hidden" name="vads_trans_date" value="20150727104852"/><input type="hidden" name="vads_trans_id" value="000001"/><input type="hidden" name="vads_url_cancel" value="http://www.Plaque-funeraire.fr/echecpaiement.php"/><input type="hidden" name="vads_url_return" value="http://www.Plaque-funeraire.fr"/><input type="hidden" name="vads_url_success" value="http://www.Plaque-funeraire.fr/succespaiement.php"/><input type="hidden" name="vads_validation_mode" value="0"/><input type="hidden" name="vads_version" value="V2"/><input type="hidden" name="signature" value="e10b74628741fdf37afb3687eb81c952e1b9db53"/></form> <script> window.document.postsystempay.submit(); </script> </html>
Output for 4.3.0 - 4.3.1
Notice: Undefined variable: montant in /in/gepl6 on line 19 Notice: Undefined variable: nom in /in/gepl6 on line 32 Notice: Undefined variable: email in /in/gepl6 on line 33 Notice: Undefined variable: adresse1 in /in/gepl6 on line 34 Notice: Undefined variable: ville in /in/gepl6 on line 35 Notice: Undefined variable: codepostal in /in/gepl6 on line 36 Notice: Undefined variable: pays in /in/gepl6 on line 37 Notice: Undefined variable: tel1 in /in/gepl6 on line 38 Notice: Undefined variable: referenceproduit in /in/gepl6 on line 39 Notice: Undefined variable: language in /in/gepl6 on line 40 Warning: fopen(count.txt) [http://www.php.net/function.fopen]: failed to create stream: No such file or directory in /in/gepl6 on line 46 Warning: flock(): supplied argument is not a valid stream resource in /in/gepl6 on line 47 Warning: fread(): supplied argument is not a valid stream resource in /in/gepl6 on line 48 Warning: fseek(): supplied argument is not a valid stream resource in /in/gepl6 on line 51 Warning: ftruncate(): supplied argument is not a valid stream resource in /in/gepl6 on line 52 Warning: fwrite(): supplied argument is not a valid stream resource in /in/gepl6 on line 53 Warning: flock(): supplied argument is not a valid stream resource in /in/gepl6 on line 54 Warning: fclose(): supplied argument is not a valid stream resource in /in/gepl6 on line 55 <form name="postsystempay" method="POST" action="https://paiement.systempay.fr/vads-payment/"> <br /><br /><br /> Chargement du terminal de paiement s&eacute;curis&eacute; : CyberPlus Banque Populaire.<br /> Merci de patienter quelques instants.<br /><br /> Chargement en cours ... <input type="hidden" name="vads_action_mode" value="INTERACTIVE"/><input type="hidden" name="vads_amount" value=""/><input type="hidden" name="vads_ctx_mode" value="PRODUCTION"/><input type="hidden" name="vads_currency" value="978"/><input type="hidden" name="vads_cust_address" value=""/><input type="hidden" name="vads_cust_cell_phone" value=""/><input type="hidden" name="vads_cust_city" value=""/><input type="hidden" name="vads_cust_email" value=""/><input type="hidden" name="vads_cust_name" value=""/><input type="hidden" name="vads_cust_state" value=""/><input type="hidden" name="vads_cust_zip" value=""/><input type="hidden" name="vads_order_id" value=""/><input type="hidden" name="vads_page_action" value="PAYMENT"/><input type="hidden" name="vads_payment_config" value="SINGLE"/><input type="hidden" name="vads_shop_name" value="Plaque-funeraire.fr - RENAUD Gravure"/><input type="hidden" name="vads_shop_url" value="http://www.Plaque-funeraire.fr"/><input type="hidden" name="vads_site_id" value="63837004"/><input type="hidden" name="vads_trans_date" value="20150727104852"/><input type="hidden" name="vads_trans_id" value="000001"/><input type="hidden" name="vads_url_cancel" value="http://www.Plaque-funeraire.fr/echecpaiement.php"/><input type="hidden" name="vads_url_return" value="http://www.Plaque-funeraire.fr"/><input type="hidden" name="vads_url_success" value="http://www.Plaque-funeraire.fr/succespaiement.php"/><input type="hidden" name="vads_validation_mode" value="0"/><input type="hidden" name="vads_version" value="V2"/><input type="hidden" name="signature" value="e10b74628741fdf37afb3687eb81c952e1b9db53"/></form> <script> window.document.postsystempay.submit(); </script> </html>