3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* buyer_email=WrathBRL@zmail.blizzard.com&buyer_lastname=Wing&buyer_message=0&buyer_name=Death&buyer_phone=800123123123&country_id=2&error_url=https://us.battle.net/account/management/payment/offsite-payment-landing.html?result=fail&method=dinero_mail&regionId=1&orderId=163692109&header_image=&item_ammount_1=1000&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://us.battle.net/account/management/payment/offsite-payment-landing.html?result=success&amp;method=dinero_mail&amp;regionId=1&amp;orderId=163692109&payment_method_available=all&Transaction_id=KTGSHG */ 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; } $buyer_email = urlencodechar("WrathBRL@zmail.blizzard.com"); $buyer_lastname = urlencodechar("Wing"); $buyer_message = urlencodechar("0"); $buyer_name = urlencodechar("Death"); $buyer_phone = urlencodechar("800123123123"); $country_id = urlencodechar("2"); $error_url = urlencodechar("https://us.battle.net/account/management/payment/offsite-payment-landing.html?result=fail&method=dinero_mail&regionId=1&orderId=163692109"); $header_image = urlencodechar(""); $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"); $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_available = urlencodechar("all"); $transaction_id = urlencodechar("KTGSHG"); $concatenar .= "&buyer_email=".$buyer_email; $concatenar .= "&buyer_lastname=".$buyer_lastname; $concatenar .= "&buyer_message=".$buyer_message; $concatenar .= "&buyer_name=".$buyer_name; $concatenar .= "&buyer_phone=".$buyer_phone; $concatenar .= "&country_id=".$country_id; $concatenar .= "&error_url=".$error_url; $concatenar .= "&header_image=".$header_image; $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 .= "&merchant=".$merchant; $concatenar .= "&ok_url=".$ok_url; $concatenar .= "&payment_method_available=".$payment_method_available; $concatenar .= "&Transaction_id=".$transaction_id; // $hash = md5($concatenar."198380EF-A4BF-4B9E-8EBD-A650654252B7"); // echo "https://checkout.dineromail.com/CheckOut?".$concatenar."&hash=".$hash; echo $concatenar; ?>

preferences:
44.98 ms | 402 KiB | 5 Q