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; ?>

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
5.4.290.0100.03712.48
5.4.280.0070.03512.37
5.4.270.0040.03712.37
5.4.260.0040.04112.38
5.4.250.0070.03812.38
5.4.240.0080.03412.38
5.4.230.0050.04012.36
5.4.220.0050.03912.36
5.4.210.0060.03612.36
5.4.200.0060.03812.37
5.4.190.0070.03612.36
5.4.180.0080.03412.36
5.4.170.0090.03612.37
5.4.160.0080.03312.37
5.4.150.0090.03312.36
5.4.140.0080.03812.05
5.4.130.0060.04212.03
5.4.120.0050.04012.00
5.4.110.0050.04412.00
5.4.100.0040.03912.00
5.4.90.0050.03811.99
5.4.80.0050.03812.00
5.4.70.0090.03511.99
5.4.60.0060.05011.99
5.4.50.0070.05112.00
5.4.40.0070.03611.98
5.4.30.0090.03611.97
5.4.20.0060.04311.97
5.4.10.0070.03711.98
5.4.00.0010.04211.47
5.3.280.0080.03912.71
5.3.270.0050.04312.73
5.3.260.0070.04412.72
5.3.250.0090.03612.72
5.3.240.0070.05112.72
5.3.230.0070.03912.71
5.3.220.0070.03712.68
5.3.210.0050.04212.68
5.3.200.0070.03812.68
5.3.190.0020.04812.68
5.3.180.0110.04112.67
5.3.170.0060.03712.67
5.3.160.0070.03812.68
5.3.150.0060.03912.67
5.3.140.0100.03212.66
5.3.130.0060.04012.66
5.3.120.0080.03712.66
5.3.110.0070.04512.66
5.3.100.0060.03912.12
5.3.90.0040.05812.09
5.3.80.0120.05112.07
5.3.70.0090.04912.08
5.3.60.0100.04912.06
5.3.50.0190.05712.00
5.3.40.0100.06612.00
5.3.30.0100.03511.95
5.3.20.0090.04511.72
5.3.10.0080.03811.70
5.3.00.0050.04011.68

preferences:
145.01 ms | 1394 KiB | 7 Q