3v4l.org

run code in 300+ PHP versions simultaneously
<?php buyer_email=WrathBRL%40zmail.blizzard.com&buyer_lastname=Wing&buyer_message=0&buyer_name=Death&buyer_phone=800123123123&country_id=2&error_url=https%3A%2F%2Fus.battle.net%2Faccount%2Fmanagement%2Fpayment%2Foffsite-payment-landing.html%3Fresult%3Dfail%26method%3Ddinero_mail%26regionId%3D1%26orderId%3D163676383&header_image=&item_ammount_1=10.0&item_code_1=11000019191000002369&item_currency_1=BRL&item_name_1=Balance+Load&item_quantity_1=1&merchant=D6B8F807-0911-4E7F-8E1F-59674A7EC971&ok_url=https%3A%2F%2Fus.battle.net%2Faccount%2Fmanagement%2Fpayment%2Foffsite-payment-landing.html%3Fresult%3Dsuccess%26amp%3Bmethod%3Ddinero_mail%26amp%3BregionId%3D1%26amp%3BorderId%3D163676383&payment_method_available=all&transaction_id=KTFUZC // $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.3.0 - 5.3.28, 5.4.0 - 5.4.29
Parse error: syntax error, unexpected '=' in /in/bg6BV on line 3
Process exited with code 255.

preferences:
184.23 ms | 1395 KiB | 66 Q