3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php // $additional_fixed_charge = urlencodechar("0"); // $additional_fixed_charge_currency = urlencodechar("brl"); // $additional_var_description_1 = urlencodechar("xxx"); // $additional_var_required_1 = urlencodechar("0"); // $additional_var_value_1 = urlencodechar("1"); // $additional_var_visible_1 = urlencodechar("1"); // $border_color = urlencodechar("CDD17A"); // $button_color = urlencodechar("CDD17A"); // $buyer_city = urlencodechar("São Paulo"); // $buyer_complement = urlencodechar("Casa"); // $buyer_country = urlencodechar("bra"); // $buyer_document_type = urlencodechar("cpf"); // $buyer_document_number = urlencodechar("123.456.789-10"); $buyer_email = urlencodechar("WrathBRL@zmail.blizzard.com"); $buyer_lastname = urlencodechar("Wing"); $buyer_message = urlencodechar("0"); $buyer_name = urlencodechar("Death"); // $buyer_number = urlencodechar("123"); $buyer_phone = urlencodechar("800123123123"); // $buyer_phone_extension = urlencodechar("011"); // $buyer_sex = urlencodechar("M"); // $buyer_state = urlencodechar("São Paulo"); // $buyer_street = urlencodechar("Rua Teste"); // $buyer_zip_code = urlencodechar("09896-210"); // $change_quantity = urlencodechar("0"); $country_id = urlencodechar("2"); // $currency = urlencodechar("brl"); // $display_additional_charge = urlencodechar("1"); // $display_shipping = urlencodechar("1"); $error_url = urlencodechar("https://us.battle.net/account/management/payment/offsite-payment-landing.html?result=fail&method=dinero_mail&regionId=1&orderId=163676383"); // $expanded_sale_detail = urlencodechar("1"); // $expanded_step_AD = urlencodechar("0"); // $expanded_step_PM = urlencodechar("1"); // $expanded_step_SC = urlencodechar("0"); // $font_color = urlencodechar("005926"); $header_image = urlencodechar(""); // $header_width = urlencodechar("2"); // $hover_step_color = urlencodechar("CDD17A"); $item_ammount_1 = urlencodechar("10.00"); $item_code_1 = urlencodechar("11000019191000002369"); $item_currency_1 = urlencodechar("brl"); $item_name_1 = urlencodechar("Balance Load"); $item_quantity_1 = urlencodechar("1"); // $item_weight_1 = urlencodechar("0400"); // $language = urlencodechar("es"); // $links_color = urlencodechar("005926"); $merchant = urlencodechar("D6B8F807-0911-4E7F-8E1F-59674A7EC971"); $ok_url = urlencodechar("https://us.battle.net/account/management/payment/offsite-payment-landing.html?result=success&method=dinero_mail&regionId=1&orderId=163676383"); // $payment_method_1 = urlencodechar(""); $payment_method_available = urlencodechar("all"); // $pending_url = urlencodechar("http://www.terra.com.br"); // $seller_name = urlencodechar("Erva Doce Produtos Naturais"); // $shipping_cost_1_1 = urlencodechar("5000"); // $shipping_currency_1 = urlencodechar("ars"); // $shipping_type_1 = urlencodechar("0"); // $step_color = urlencodechar("CDD17A"); // $tool = urlencodechar("button"); $transaction_id = urlencodechar("KTFUZC"); // $weight_1 = urlencodechar("kg"); function urlencodechar($str){ $newstrencode=""; $countstr=strlen($str); for($i=0;$i<$countstr;$i++){ $newstr = substr($str, $i,1); if($newstr==" "){ $strencode="%20"; } else{ $strencode=urlencode($newstr); } if(substr_count($strencode, "%")==0){ $newstrencode .=$strencode; } else{ $newstrencodeaux=strtolower($strencode); $newstrencode .=$newstrencodeaux; } } return $newstrencode; } $concatenar = "additional_fixed_charge=".$additional_fixed_charge; $concatenar .= "&additional_fixed_charge_currency=".$additional_fixed_charge_currency; $concatenar .= "&additional_var_description_1=".$additional_var_description_1; $concatenar .= "&additional_var_required_1=".$additional_var_required_1; $concatenar .= "&additional_var_value_1=".$additional_var_value_1; $concatenar .= "&additional_var_visible_1=".$additional_var_visible_1; $concatenar .= "&border_color=".$border_color; $concatenar .= "&button_color=".$button_color; $concatenar .= "&buyer_city=".$buyer_city; $concatenar .= "&buyer_complement=".$buyer_complement; $concatenar .= "&buyer_country=".$buyer_country; $concatenar .= "&buyer_document_number=".$buyer_document_number; $concatenar .= "&buyer_document_type=".$buyer_document_type; $concatenar .= "&buyer_email=".$buyer_email; $concatenar .= "&buyer_lastname=".$buyer_lastname; $concatenar .= "&buyer_message=".$buyer_message; $concatenar .= "&buyer_name=".$buyer_name; $concatenar .= "&buyer_number=".$buyer_number; $concatenar .= "&buyer_phone=".$buyer_phone; $concatenar .= "&buyer_phone_extension=".$buyer_phone_extension; $concatenar .= "&buyer_sex=".$buyer_sex; $concatenar .= "&buyer_state=".$buyer_state; $concatenar .= "&buyer_street=".$buyer_street; $concatenar .= "&buyer_zip_code=".$buyer_zip_code; $concatenar .= "&change_quantity=".$change_quantity; $concatenar .= "&country_id=".$country_id; $concatenar .= "&currency=".$currency; $concatenar .= "&display_additional_charge=".$display_additional_charge; $concatenar .= "&display_shipping=".$display_shipping; $concatenar .= "&error_url=".$error_url; $concatenar .= "&expanded_sale_detail=".$expanded_sale_detail; $concatenar .= "&expanded_step_AD=".$expanded_step_AD; $concatenar .= "&expanded_step_PM=".$expanded_step_PM; $concatenar .= "&expanded_step_SC=".$expanded_step_SC; $concatenar .= "&font_color=".$font_color; $concatenar .= "&header_image=".$header_image; $concatenar .= "&header_width=".$header_width; $concatenar .= "&hover_step_color=".$hover_step_color; $concatenar .= "&item_ammount_1=".$item_ammount_1; $concatenar .= "&item_code_1=".$item_code_1; $concatenar .= "&item_currency_1=".$item_currency_1; $concatenar .= "&item_name_1=".$item_name_1; $concatenar .= "&item_quantity_1=".$item_quantity_1; $concatenar .= "&item_weight_1=".$item_weight_1; $concatenar .= "&language=".$language; $concatenar .= "&links_color=".$links_color; $concatenar .= "&merchant=".$merchant; $concatenar .= "&ok_url=".$ok_url; $concatenar .= "&payment_method_1=".$payment_method_1; $concatenar .= "&payment_method_available=".$payment_method_available; $concatenar .= "&pending_url=".$pending_url; $concatenar .= "&seller_name=".$seller_name; $concatenar .= "&shipping_cost_1_1=".$shipping_cost_1_1; $concatenar .= "&shipping_currency_1=".$shipping_currency_1; $concatenar .= "&shipping_type_1=".$shipping_type_1; $concatenar .= "&step_color=".$step_color; $concatenar .= "&tool=".$tool; $concatenar .= "&Transaction_id=".$transaction_id; $concatenar .= "&weight_1=".$weight_1; // $hash = md5($concatenar."198380EF-A4BF-4B9E-8EBD-A650654252B7"); // echo "https://checkout.dineromail.com/CheckOut?".$concatenar."&hash=".$hash; echo $concatenar; ?>
Output for 5.0.4 - 5.6.28, 7.0.0 - 7.1.0
Notice: Undefined variable: additional_fixed_charge in /in/YpEbv on line 100 Notice: Undefined variable: additional_fixed_charge_currency in /in/YpEbv on line 101 Notice: Undefined variable: additional_var_description_1 in /in/YpEbv on line 102 Notice: Undefined variable: additional_var_required_1 in /in/YpEbv on line 103 Notice: Undefined variable: additional_var_value_1 in /in/YpEbv on line 104 Notice: Undefined variable: additional_var_visible_1 in /in/YpEbv on line 105 Notice: Undefined variable: border_color in /in/YpEbv on line 107 Notice: Undefined variable: button_color in /in/YpEbv on line 108 Notice: Undefined variable: buyer_city in /in/YpEbv on line 109 Notice: Undefined variable: buyer_complement in /in/YpEbv on line 110 Notice: Undefined variable: buyer_country in /in/YpEbv on line 111 Notice: Undefined variable: buyer_document_number in /in/YpEbv on line 112 Notice: Undefined variable: buyer_document_type in /in/YpEbv on line 113 Notice: Undefined variable: buyer_number in /in/YpEbv on line 119 Notice: Undefined variable: buyer_phone_extension in /in/YpEbv on line 121 Notice: Undefined variable: buyer_sex in /in/YpEbv on line 122 Notice: Undefined variable: buyer_state in /in/YpEbv on line 123 Notice: Undefined variable: buyer_street in /in/YpEbv on line 124 Notice: Undefined variable: buyer_zip_code in /in/YpEbv on line 125 Notice: Undefined variable: change_quantity in /in/YpEbv on line 127 Notice: Undefined variable: currency in /in/YpEbv on line 129 Notice: Undefined variable: display_additional_charge in /in/YpEbv on line 131 Notice: Undefined variable: display_shipping in /in/YpEbv on line 132 Notice: Undefined variable: expanded_sale_detail in /in/YpEbv on line 135 Notice: Undefined variable: expanded_step_AD in /in/YpEbv on line 136 Notice: Undefined variable: expanded_step_PM in /in/YpEbv on line 137 Notice: Undefined variable: expanded_step_SC in /in/YpEbv on line 138 Notice: Undefined variable: font_color in /in/YpEbv on line 140 Notice: Undefined variable: header_width in /in/YpEbv on line 143 Notice: Undefined variable: hover_step_color in /in/YpEbv on line 144 Notice: Undefined variable: item_weight_1 in /in/YpEbv on line 151 Notice: Undefined variable: language in /in/YpEbv on line 153 Notice: Undefined variable: links_color in /in/YpEbv on line 154 Notice: Undefined variable: payment_method_1 in /in/YpEbv on line 160 Notice: Undefined variable: pending_url in /in/YpEbv on line 162 Notice: Undefined variable: seller_name in /in/YpEbv on line 164 Notice: Undefined variable: shipping_cost_1_1 in /in/YpEbv on line 165 Notice: Undefined variable: shipping_currency_1 in /in/YpEbv on line 166 Notice: Undefined variable: shipping_type_1 in /in/YpEbv on line 167 Notice: Undefined variable: step_color in /in/YpEbv on line 168 Notice: Undefined variable: tool in /in/YpEbv on line 170 Notice: Undefined variable: weight_1 in /in/YpEbv on line 173 additional_fixed_charge=&additional_fixed_charge_currency=&additional_var_description_1=&additional_var_required_1=&additional_var_value_1=&additional_var_visible_1=&border_color=&button_color=&buyer_city=&buyer_complement=&buyer_country=&buyer_document_number=&buyer_document_type=&buyer_email=WrathBRL%40zmail.blizzard.com&buyer_lastname=Wing&buyer_message=0&buyer_name=Death&buyer_number=&buyer_phone=800123123123&buyer_phone_extension=&buyer_sex=&buyer_state=&buyer_street=&buyer_zip_code=&change_quantity=&country_id=2&currency=&display_additional_charge=&display_shipping=&error_url=https%3a%2f%2fus.battle.net%2faccount%2fmanagement%2fpayment%2foffsite-payment-landing.html%3fresult%3dfail%26method%3ddinero_mail%26regionId%3d1%26orderId%3d163676383&expanded_sale_detail=&expanded_step_AD=&expanded_step_PM=&expanded_step_SC=&font_color=&header_image=&header_width=&hover_step_color=&item_ammount_1=10.00&item_code_1=11000019191000002369&item_currency_1=brl&item_name_1=Balance%20Load&item_quantity_1=1&item_weight_1=&language=&links_color=&merchant=D6B8F807-0911-4E7F-8E1F-59674A7EC971&ok_url=https%3a%2f%2fus.battle.net%2faccount%2fmanagement%2fpayment%2foffsite-payment-landing.html%3fresult%3dsuccess%26method%3ddinero_mail%26regionId%3d1%26orderId%3d163676383&payment_method_1=&payment_method_available=all&pending_url=&seller_name=&shipping_cost_1_1=&shipping_currency_1=&shipping_type_1=&step_color=&tool=&Transaction_id=KTFUZC&weight_1=
Output for hhvm-3.10.0 - 3.12.0
Notice: Undefined variable: additional_fixed_charge in /in/YpEbv on line 100 Notice: Undefined variable: additional_fixed_charge_currency in /in/YpEbv on line 101 Notice: Undefined variable: additional_var_description_1 in /in/YpEbv on line 102 Notice: Undefined variable: additional_var_required_1 in /in/YpEbv on line 103 Notice: Undefined variable: additional_var_value_1 in /in/YpEbv on line 104 Notice: Undefined variable: additional_var_visible_1 in /in/YpEbv on line 105 Notice: Undefined variable: border_color in /in/YpEbv on line 107 Notice: Undefined variable: button_color in /in/YpEbv on line 108 Notice: Undefined variable: buyer_city in /in/YpEbv on line 109 Notice: Undefined variable: buyer_complement in /in/YpEbv on line 110 Notice: Undefined variable: buyer_country in /in/YpEbv on line 111 Notice: Undefined variable: buyer_document_number in /in/YpEbv on line 112 Notice: Undefined variable: buyer_document_type in /in/YpEbv on line 113 Notice: Undefined variable: buyer_number in /in/YpEbv on line 119 Notice: Undefined variable: buyer_phone_extension in /in/YpEbv on line 121 Notice: Undefined variable: buyer_sex in /in/YpEbv on line 122 additional_fixed_charge=&additional_fixed_charge_currency=&additional_var_description_1=&additional_var_required_1=&additional_var_value_1=&additional_var_visible_1=&border_color=&button_color=&buyer_city=&buyer_complement=&buyer_country=&buyer_document_number=&buyer_document_type=&buyer_email=WrathBRL%40zmail.blizzard.com&buyer_lastname=Wing&buyer_message=0&buyer_name=Death&buyer_number=&buyer_phone=800123123123&buyer_phone_extension=&buyer_sex=&buyer_state=&buyer_street=&buyer_zip_code=&change_quantity=&country_id=2&currency=&display_additional_charge=&display_shipping=&error_url=https%3a%2f%2fus.battle.net%2faccount%2fmanagement%2fpayment%2foffsite-payment-landing.html%3fresult%3dfail%26method%3ddinero_mail%26regionId%3d1%26orderId%3d163676383&expanded_sale_detail=&expanded_step_AD=&expanded_step_PM=&expanded_step_SC=&font_color=&header_image=&header_width=&hover_step_color=&item_ammount_1=10.00&item_code_1=11000019191000002369&item_currency_1=brl&item_name_1=Balance%20Load&item_quantity_1=1&item_weight_1=&language=&links_color=&merchant=D6B8F807-0911-4E7F-8E1F-59674A7EC971&ok_url=https%3a%2f%2fus.battle.net%2faccount%2fmanagement%2fpayment%2foffsite-payment-landing.html%3fresult%3dsuccess%26method%3ddinero_mail%26regionId%3d1%26orderId%3d163676383&payment_method_1=&payment_method_available=all&pending_url=&seller_name=&shipping_cost_1_1=&shipping_currency_1=&shipping_type_1=&step_color=&tool=&Transaction_id=KTFUZC&weight_1=
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: additional_fixed_charge in /in/YpEbv on line 100 Notice: Undefined variable: additional_fixed_charge_currency in /in/YpEbv on line 101 Notice: Undefined variable: additional_var_description_1 in /in/YpEbv on line 102 Notice: Undefined variable: additional_var_required_1 in /in/YpEbv on line 103 Notice: Undefined variable: additional_var_value_1 in /in/YpEbv on line 104 Notice: Undefined variable: additional_var_visible_1 in /in/YpEbv on line 105 Notice: Undefined variable: border_color in /in/YpEbv on line 107 Notice: Undefined variable: button_color in /in/YpEbv on line 108 Notice: Undefined variable: buyer_city in /in/YpEbv on line 109 Notice: Undefined variable: buyer_complement in /in/YpEbv on line 110 Notice: Undefined variable: buyer_country in /in/YpEbv on line 111 Notice: Undefined variable: buyer_document_number in /in/YpEbv on line 112 Notice: Undefined variable: buyer_document_type in /in/YpEbv on line 113 Notice: Undefined variable: buyer_number in /in/YpEbv on line 119 Notice: Undefined variable: buyer_phone_extension in /in/YpEbv on line 121 Notice: Undefined variable: buyer_sex in /in/YpEbv on line 122 Notice: Undefined variable: buyer_state in /in/YpEbv on line 123 Notice: Undefined variable: buyer_street in /in/YpEbv on line 124 Notice: Undefined variable: buyer_zip_code in /in/YpEbv on line 125 Notice: Undefined variable: change_quantity in /in/YpEbv on line 127 Notice: Undefined variable: currency in /in/YpEbv on line 129 Notice: Undefined variable: display_additional_charge in /in/YpEbv on line 131 Notice: Undefined variable: display_shipping in /in/YpEbv on line 132 Notice: Undefined variable: expanded_sale_detail in /in/YpEbv on line 135 Notice: Undefined variable: expanded_step_AD in /in/YpEbv on line 136 Notice: Undefined variable: expanded_step_PM in /in/YpEbv on line 137 Notice: Undefined variable: expanded_step_SC in /in/YpEbv on line 138 Notice: Undefined variable: font_color in /in/YpEbv on line 140 Notice: Undefined variable: header_width in /in/YpEbv on line 143 Notice: Undefined variable: hover_step_color in /in/YpEbv on line 144 Notice: Undefined variable: item_weight_1 in /in/YpEbv on line 151 Notice: Undefined variable: language in /in/YpEbv on line 153 Notice: Undefined variable: links_color in /in/YpEbv on line 154 Notice: Undefined variable: payment_method_1 in /in/YpEbv on line 160 Notice: Undefined variable: pending_url in /in/YpEbv on line 162 Notice: Undefined variable: seller_name in /in/YpEbv on line 164 Notice: Undefined variable: shipping_cost_1_1 in /in/YpEbv on line 165 Notice: Undefined variable: shipping_currency_1 in /in/YpEbv on line 166 Notice: Undefined variable: shipping_type_1 in /in/YpEbv on line 167 Notice: Undefined variable: step_color in /in/YpEbv on line 168 Notice: Undefined variable: tool in /in/YpEbv on line 170 Notice: Undefined variable: weight_1 in /in/YpEbv on line 173 additional_fixed_charge=&additional_fixed_charge_currency=&additional_var_description_1=&additional_var_required_1=&additional_var_value_1=&additional_var_visible_1=&border_color=&button_color=&buyer_city=&buyer_complement=&buyer_country=&buyer_document_number=&buyer_document_type=&buyer_email=WrathBRL%40zmail.blizzard.com&buyer_lastname=Wing&buyer_message=0&buyer_name=Death&buyer_number=&buyer_phone=800123123123&buyer_phone_extension=&buyer_sex=&buyer_state=&buyer_street=&buyer_zip_code=&change_quantity=&country_id=2&currency=&display_additional_charge=&display_shipping=&error_url=https%3a%2f%2fus.battle.net%2faccount%2fmanagement%2fpayment%2foffsite-payment-landing.html%3fresult%3dfail%26method%3ddinero_mail%26regionId%3d1%26orderId%3d163676383&expanded_sale_detail=&expanded_step_AD=&expanded_step_PM=&expanded_step_SC=&font_color=&header_image=&header_width=&hover_step_color=&item_ammount_1=10.00&item_code_1=11000019191000002369&item_currency_1=brl&item_name_1=Balance%20Load&item_quantity_1=1&item_weight_1=&language=&links_color=&merchant=D6B8F807-0911-4E7F-8E1F-59674A7EC971&ok_url=https%3a%2f%2fus.battle.net%2faccount%2fmanagement%2fpayment%2foffsite-payment-landing.html%3fresult%3dsuccess%26method%3ddinero_mail%26regionId%3d1%26orderId%3d163676383&payment_method_1=&payment_method_available=all&pending_url=&seller_name=&shipping_cost_1_1=&shipping_currency_1=&shipping_type_1=&step_color=&tool=&Transaction_id=KTFUZC&weight_1=