3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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; ?>
Output for 5.0.4 - 5.6.28, 7.0.0 - 7.1.0
Notice: Undefined variable: concatenar in /in/GkSIA on line 48 &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%3d163692109&header_image=&item_ammount_1=10.00&item_code_1=11000019191000002369&item_currency_1=BRL&item_name_1=Balance%20Load&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%26method%3ddinero_mail%26regionId%3d1%26orderId%3d163676383&payment_method_available=all&Transaction_id=KTGSHG
Output for hhvm-3.12.0
&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%3d163692109&header_image=&item_ammount_1=10.00&item_code_1=11000019191000002369&item_currency_1=BRL&item_name_1=Balance%20Load&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%26method%3ddinero_mail%26regionId%3d1%26orderId%3d163676383&payment_method_available=all&Transaction_id=KTGSHG
Output for hhvm-3.10.0

Process exited with code 153.
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: concatenar in /in/GkSIA on line 48 &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%3d163692109&header_image=&item_ammount_1=10.00&item_code_1=11000019191000002369&item_currency_1=BRL&item_name_1=Balance%20Load&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%26method%3ddinero_mail%26regionId%3d1%26orderId%3d163676383&payment_method_available=all&Transaction_id=KTGSHG