3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $transaction_details = array( 'TOKEN' => "EC%2d43B2115800288653W" 'BILLINGAGREEMENTACCEPTEDSTATUS' => "0" 'CHECKOUTSTATUS' => "PaymentActionCompleted" 'TIMESTAMP' => "2014%2d11%2d12T09%3a51%3a45Z" 'CORRELATIONID' => "7e6330cf8cd59" 'ACK' => "Success" 'VERSION' => "109%2e0" 'BUILD' => "13630372" 'EMAIL' => "hbdev0030%40phptalent%2ecom" 'PAYERID' => "VU6XDL4FNXQ7A" 'PAYERSTATUS' => "verified" 'FIRSTNAME' => "hbdev" 'LASTNAME' => "hbdev" 'COUNTRYCODE' => "US" 'SHIPTONAME' => "hbdev%20hbdev" 'SHIPTOSTREET' => "1%20Main%20St" 'SHIPTOCITY' => "San%20Jose" 'SHIPTOSTATE' => "CA" 'SHIPTOZIP' => "95131" 'SHIPTOCOUNTRYCODE' => "US" 'SHIPTOCOUNTRYNAME' => "United%20States" 'ADDRESSSTATUS' => "Confirmed" 'CURRENCYCODE' => "USD" 'AMT' => "5%2e60" 'ITEMAMT' => "0%2e02" 'SHIPPINGAMT' => "3%2e00" 'HANDLINGAMT' => "2%2e00" 'TAXAMT' => "2%2e58" 'INSURANCEAMT' => "1%2e00" 'SHIPDISCAMT' => "%2d3%2e00" 'L_NAME0' => "Android%20Phone%20FX1" 'L_NAME1' => "Television%20DXT" 'L_NUMBER0' => "PD1001" 'L_NUMBER1' => "PD1002" 'L_QTY0' => "1" 'L_QTY1' => "1" 'L_TAXAMT0' => "0%2e00" 'L_TAXAMT1' => "0%2e00" 'L_AMT0' => "0%2e01" 'L_AMT1' => "0%2e01" 'L_ITEMWEIGHTVALUE0' => "%20%20%200%2e00000" 'L_ITEMWEIGHTVALUE1' => "%20%20%200%2e00000" 'L_ITEMLENGTHVALUE0' => "%20%20%200%2e00000" 'L_ITEMLENGTHVALUE1' => "%20%20%200%2e00000" 'L_ITEMWIDTHVALUE0' => "%20%20%200%2e00000" 'L_ITEMWIDTHVALUE1' => "%20%20%200%2e00000" 'L_ITEMHEIGHTVALUE0' => "%20%20%200%2e00000" 'L_ITEMHEIGHTVALUE1' => "%20%20%200%2e00000" 'PAYMENTREQUEST_0_CURRENCYCODE' => "USD" 'PAYMENTREQUEST_0_AMT' => "5%2e60" 'PAYMENTREQUEST_0_ITEMAMT' => "0%2e02" 'PAYMENTREQUEST_0_SHIPPINGAMT' => "3%2e00" 'PAYMENTREQUEST_0_HANDLINGAMT' => "2%2e00" 'PAYMENTREQUEST_0_TAXAMT' => "2%2e58" 'PAYMENTREQUEST_0_INSURANCEAMT' => "1%2e00" 'PAYMENTREQUEST_0_SHIPDISCAMT' => "%2d3%2e00" 'PAYMENTREQUEST_0_TRANSACTIONID' => "7X437217AT4055224" 'PAYMENTREQUEST_0_INSURANCEOPTIONOFFERED' => "false" 'PAYMENTREQUEST_0_SHIPTONAME' => "hbdev%20hbdev" 'PAYMENTREQUEST_0_SHIPTOSTREET' => "1%20Main%20St" 'PAYMENTREQUEST_0_SHIPTOCITY' => "San%20Jose" 'PAYMENTREQUEST_0_SHIPTOSTATE' => "CA" 'PAYMENTREQUEST_0_SHIPTOZIP' => "95131" 'PAYMENTREQUEST_0_SHIPTOCOUNTRYCODE' => "US" 'PAYMENTREQUEST_0_SHIPTOCOUNTRYNAME' => "United%20States" 'PAYMENTREQUEST_0_ADDRESSSTATUS' => "Confirmed" 'PAYMENTREQUEST_0_ADDRESSNORMALIZATIONSTATUS' => "None" 'L_PAYMENTREQUEST_0_NAME0' => "Android%20Phone%20FX1" 'L_PAYMENTREQUEST_0_NAME1' => "Television%20DXT" 'L_PAYMENTREQUEST_0_NUMBER0' => "PD1001" 'L_PAYMENTREQUEST_0_NUMBER1' => "PD1002" 'L_PAYMENTREQUEST_0_QTY0' => "1" 'L_PAYMENTREQUEST_0_QTY1' => "1" 'L_PAYMENTREQUEST_0_TAXAMT0' => "0%2e00" 'L_PAYMENTREQUEST_0_TAXAMT1' => "0%2e00" 'L_PAYMENTREQUEST_0_AMT0' => "0%2e01" 'L_PAYMENTREQUEST_0_AMT1' => "0%2e01" 'L_PAYMENTREQUEST_0_ITEMWEIGHTVALUE0' => "%20%20%200%2e00000" 'L_PAYMENTREQUEST_0_ITEMWEIGHTVALUE1' => "%20%20%200%2e00000" 'L_PAYMENTREQUEST_0_ITEMLENGTHVALUE0' => "%20%20%200%2e00000" 'L_PAYMENTREQUEST_0_ITEMLENGTHVALUE1' => "%20%20%200%2e00000" 'L_PAYMENTREQUEST_0_ITEMWIDTHVALUE0' => "%20%20%200%2e00000" 'L_PAYMENTREQUEST_0_ITEMWIDTHVALUE1' => "%20%20%200%2e00000" 'L_PAYMENTREQUEST_0_ITEMHEIGHTVALUE0' => "%20%20%200%2e00000" 'L_PAYMENTREQUEST_0_ITEMHEIGHTVALUE1' => "%20%20%200%2e00000" 'PAYMENTREQUESTINFO_0_TRANSACTIONID' => "7X437217AT4055224" 'PAYMENTREQUESTINFO_0_ERRORCODE' => "0" ); foreach($transaction_details as $k => @$value) { $value = urldecode($value); }
Output for 5.4.0 - 5.4.34
Parse error: syntax error, unexpected ''BILLINGAGREEMENTACCEPTEDSTATU' (T_CONSTANT_ENCAPSED_STRING), expecting ')' in /in/jhDD7 on line 6
Process exited with code 255.
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.29
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /in/jhDD7 on line 6
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /in/jhDD7 on line 6
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `')'' in /in/jhDD7 on line 6
Process exited with code 255.