3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo '<pre>'; print_r( json_decode('{"success":false,"msg":"220-hostik31.hostik.com ESMTP Exim 4.82 #2 Mon, 06 Oct 2014 09:41:54 -0700 \r\n220-We do not authorize the use of this system to transport unsolicited, \r\n220 and\/or bulk e-mail.\r\n<br \/><pre>hello: 250-hostik31.hostik.com Hello hostik31.hostik.net [209.210.25.40]\r\n250-SIZE 52428800\r\n250-8BITMIME\r\n250-PIPELINING\r\n250-AUTH PLAIN LOGIN\r\n250-STARTTLS\r\n250 HELP\r\n<\/pre>Failed to authenticate password. Error: 535 Incorrect authentication data\r\n<br \/><pre>from: 250 OK\r\n<\/pre><pre>to: 550 SMTP AUTH is required for message submission on port 587\r\n<\/pre>The following SMTP error was encountered: 550 SMTP AUTH is required for message submission on port 587\r\n<br \/><pre>data: <\/pre>The following SMTP error was encountered: <br \/>Unable to send data: User-Agent: CodeIgniter\r\nDate: Mon, 6 Oct 2014 16:41:54 +0000\r\nTo: nick@taylordigital.com\r\nFrom: <info@teamameripak.com>\r\nReturn-Path: <info@teamameripak.com>\r\nSubject: =?utf-8?Q?Contact_form_submission_from_Ameripak.com?=\r\nReply-To: \"info@teamameripak.com\" <info@teamameripak.com>\r\nX-Sender: info@teamameripak.com\r\nX-Mailer: CodeIgniter\r\nX-Priority: 3 (Normal)\r\nMessage-ID: <5432c6527e6cc@teamameripak.com>\r\nMime-Version: 1.0\r\nContent-Type: multipart\/alternative; boundary=\"B_ALT_5432c6527eaaf\"\r\n\r\nThis is a multi-part message in MIME format.\r\nYour email application may not support this format.\r\n\r\n--B_ALT_5432c6527eaaf\r\nContent-Type: text\/plain; charset=utf-8\r\nContent-Transfer-Encoding: 8bit\r\n\r\nATTN: General DepartmentSomeone has submitted a Contact form on\r\nTeamAmeripak.com\r\nContact Information:\r\n\r\nName:\r\nJon Leek\r\n\r\nCompany:\r\nTaylor Digital\r\n\r\nEmail Address:\r\njonathan@taylordigital.com\r\n\r\nPhone:\r\nN\/A\r\n\r\nFax:\r\nN\/A\r\n\r\nMessage:\r\nJust testing from Taylor Digital.\r\n\r\n\r\n--B_ALT_5432c6527eaaf\r\nContent-Type: text\/html; charset=utf-8\r\nContent-Transfer-Encoding: quoted-printable\r\n\r\n<!doctype html>\r\n<html>\r\n<head>\r\n\t<meta charset=3D\"UTF-8\">\r\n\t<title>Someone has submitted a Contact form on TeamAmeripak.com<\/title>\r\n\t<style>\r\n\tbody {\r\n\t\tfont-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif;\r\n\t\tcolor: #666;\r\n\t}\r\n=09\r\n\tth {\r\n\t\ttext-align: left;\r\n\t}\r\n\t<\/style>\r\n<\/head>\r\n<body>\r\n\t<a href=3D\"http:\/\/www.teamameripak.com\/\"><img src=3D\"http:\/\/www.teamamerip=\r\nak.com\/images\/278x111\/content\/images\/ameripak-logo.png\" alt=3D\"Ameripak Ind=\r\nustries Inc.\" \/><\/a>\r\n\t<p>ATTN: General Department<br \/>Someone has submitted a Contact form on T=\r\neamAmeripak.com<\/p>\r\n\t<h3>Contact Information:<\/h3>\r\n\t<table>\r\n\t\t<tr>\r\n\t\t\t<th>Name:<\/th>\r\n\t\t\t<td>Jon Leek<\/td>\r\n\t\t<\/tr>\r\n\t\t<tr>\r\n\t\t\t<th>Company:<\/th>\r\n\t\t\t<td>Taylor Digital<\/td>\r\n\t\t<\/tr>\r\n\t\t<tr>\r\n\t\t\t<th>Email Address:<\/th>\r\n\t\t\t<td>jonathan@taylordigital.com<\/td>\r\n\t\t<\/tr>\r\n\t\t<tr>\r\n\t\t\t<th>Phone:<\/th>\r\n\t\t\t<td>N\/A<\/td>\r\n\t\t<\/tr>\r\n\t\t<tr>\r\n\t\t\t<th>Fax:<\/th>\r\n\t\t\t<td>N\/A<\/td>\r\n\t\t<\/tr>\r\n\t<\/table>\r\n\t<h3>Message:<\/h3>\r\n\t<p>Just testing from Taylor Digital.<\/p>\r\n<\/body>\r\n<\/html>\r\n\r\n--B_ALT_5432c6527eaaf--<br \/>Unable to send data: .<br \/><br \/>The following SMTP error was encountered: <br \/>Unable to send email using PHP SMTP. Your server might not be configured to send mail using this method.<br \/><pre>User-Agent: CodeIgniter\r\nDate: Mon, 6 Oct 2014 16:41:54 +0000\r\nTo: nick@taylordigital.com\r\nFrom: <info@teamameripak.com>\r\nReturn-Path: <info@teamameripak.com>\r\nSubject: =?utf-8?Q?Contact_form_submission_from_Ameripak.com?=\r\nReply-To: \"info@teamameripak.com\" <info@teamameripak.com>\r\nX-Sender: info@teamameripak.com\r\nX-Mailer: CodeIgniter\r\nX-Priority: 3 (Normal)\r\nMessage-ID: <5432c6527e6cc@teamameripak.com>\r\nMime-Version: 1.0\r\n\n\nContent-Type: multipart\/alternative; boundary=&quot;B_ALT_5432c6527eaaf&quot;\r\n\r\nThis is a multi-part message in MIME format.\r\nYour email application may not support this format.\r\n\r\n--B_ALT_5432c6527eaaf\r\nContent-Type: text\/plain; charset=utf-8\r\nContent-Transfer-Encoding: 8bit\r\n\r\nATTN: General DepartmentSomeone has submitted a Contact form on\r\nTeamAmeripak.com\r\nContact Information:\r\n\r\nName:\r\nJon Leek\r\n\r\nCompany:\r\nTaylor Digital\r\n\r\nEmail Address:\r\njonathan@taylordigital.com\r\n\r\nPhone:\r\nN\/A\r\n\r\nFax:\r\nN\/A\r\n\r\nMessage:\r\nJust testing from Taylor Digital.\r\n\r\n\r\n--B_ALT_5432c6527eaaf\r\nContent-Type: text\/html; charset=utf-8\r\nContent-Transfer-Encoding: quoted-printable\r\n\r\n&lt;!doctype html&gt;\r\n&lt;html&gt;\r\n&lt;head&gt;\r\n\t&lt;meta charset=3D&quot;UTF-8&quot;&gt;\r\n\t&lt;title&gt;Someone has submitted a Contact form on TeamAmeripak.com&lt;\/title&gt;\r\n\t&lt;style&gt;\r\n\tbody {\r\n\t\tfont-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;\r\n\t\tcolor: #666;\r\n\t}\r\n=09\r\n\tth {\r\n\t\ttext-align: left;\r\n\t}\r\n\t&lt;\/style&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n\t&lt;a href=3D&quot;http:\/\/www.teamameripak.com\/&quot;&gt;&lt;img src=3D&quot;http:\/\/www.teamamerip=\r\nak.com\/images\/278x111\/content\/images\/ameripak-logo.png&quot; alt=3D&quot;Ameripak Ind=\r\nustries Inc.&quot; \/&gt;&lt;\/a&gt;\r\n\t&lt;p&gt;ATTN: General Department&lt;br \/&gt;Someone has submitted a Contact form on T=\r\neamAmeripak.com&lt;\/p&gt;\r\n\t&lt;h3&gt;Contact Information:&lt;\/h3&gt;\r\n\t&lt;table&gt;\r\n\t\t&lt;tr&gt;\r\n\t\t\t&lt;th&gt;Name:&lt;\/th&gt;\r\n\t\t\t&lt;td&gt;Jon Leek&lt;\/td&gt;\r\n\t\t&lt;\/tr&gt;\r\n\t\t&lt;tr&gt;\r\n\t\t\t&lt;th&gt;Company:&lt;\/th&gt;\r\n\t\t\t&lt;td&gt;Taylor Digital&lt;\/td&gt;\r\n\t\t&lt;\/tr&gt;\r\n\t\t&lt;tr&gt;\r\n\t\t\t&lt;th&gt;Email Address:&lt;\/th&gt;\r\n\t\t\t&lt;td&gt;jonathan@taylordigital.com&lt;\/td&gt;\r\n\t\t&lt;\/tr&gt;\r\n\t\t&lt;tr&gt;\r\n\t\t\t&lt;th&gt;Phone:&lt;\/th&gt;\r\n\t\t\t&lt;td&gt;N\/A&lt;\/td&gt;\r\n\t\t&lt;\/tr&gt;\r\n\t\t&lt;tr&gt;\r\n\t\t\t&lt;th&gt;Fax:&lt;\/th&gt;\r\n\t\t\t&lt;td&gt;N\/A&lt;\/td&gt;\r\n\t\t&lt;\/tr&gt;\r\n\t&lt;\/table&gt;\r\n\t&lt;h3&gt;Message:&lt;\/h3&gt;\r\n\t&lt;p&gt;Just testing from Taylor Digital.&lt;\/p&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;\r\n\r\n--B_ALT_5432c6527eaaf--<\/pre>","error":2}'));
based on LBaUQ
Output for 5.2.0 - 7.1.0
<pre>stdClass Object ( [success] => [msg] => 220-hostik31.hostik.com ESMTP Exim 4.82 #2 Mon, 06 Oct 2014 09:41:54 -0700 220-We do not authorize the use of this system to transport unsolicited, 220 and/or bulk e-mail. <br /><pre>hello: 250-hostik31.hostik.com Hello hostik31.hostik.net [209.210.25.40] 250-SIZE 52428800 250-8BITMIME 250-PIPELINING 250-AUTH PLAIN LOGIN 250-STARTTLS 250 HELP </pre>Failed to authenticate password. Error: 535 Incorrect authentication data <br /><pre>from: 250 OK </pre><pre>to: 550 SMTP AUTH is required for message submission on port 587 </pre>The following SMTP error was encountered: 550 SMTP AUTH is required for message submission on port 587 <br /><pre>data: </pre>The following SMTP error was encountered: <br />Unable to send data: User-Agent: CodeIgniter Date: Mon, 6 Oct 2014 16:41:54 +0000 To: nick@taylordigital.com From: <info@teamameripak.com> Return-Path: <info@teamameripak.com> Subject: =?utf-8?Q?Contact_form_submission_from_Ameripak.com?= Reply-To: "info@teamameripak.com" <info@teamameripak.com> X-Sender: info@teamameripak.com X-Mailer: CodeIgniter X-Priority: 3 (Normal) Message-ID: <5432c6527e6cc@teamameripak.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="B_ALT_5432c6527eaaf" This is a multi-part message in MIME format. Your email application may not support this format. --B_ALT_5432c6527eaaf Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit ATTN: General DepartmentSomeone has submitted a Contact form on TeamAmeripak.com Contact Information: Name: Jon Leek Company: Taylor Digital Email Address: jonathan@taylordigital.com Phone: N/A Fax: N/A Message: Just testing from Taylor Digital. --B_ALT_5432c6527eaaf Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable <!doctype html> <html> <head> <meta charset=3D"UTF-8"> <title>Someone has submitted a Contact form on TeamAmeripak.com</title> <style> body { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; color: #666; } =09 th { text-align: left; } </style> </head> <body> <a href=3D"http://www.teamameripak.com/"><img src=3D"http://www.teamamerip= ak.com/images/278x111/content/images/ameripak-logo.png" alt=3D"Ameripak Ind= ustries Inc." /></a> <p>ATTN: General Department<br />Someone has submitted a Contact form on T= eamAmeripak.com</p> <h3>Contact Information:</h3> <table> <tr> <th>Name:</th> <td>Jon Leek</td> </tr> <tr> <th>Company:</th> <td>Taylor Digital</td> </tr> <tr> <th>Email Address:</th> <td>jonathan@taylordigital.com</td> </tr> <tr> <th>Phone:</th> <td>N/A</td> </tr> <tr> <th>Fax:</th> <td>N/A</td> </tr> </table> <h3>Message:</h3> <p>Just testing from Taylor Digital.</p> </body> </html> --B_ALT_5432c6527eaaf--<br />Unable to send data: .<br /><br />The following SMTP error was encountered: <br />Unable to send email using PHP SMTP. Your server might not be configured to send mail using this method.<br /><pre>User-Agent: CodeIgniter Date: Mon, 6 Oct 2014 16:41:54 +0000 To: nick@taylordigital.com From: <info@teamameripak.com> Return-Path: <info@teamameripak.com> Subject: =?utf-8?Q?Contact_form_submission_from_Ameripak.com?= Reply-To: "info@teamameripak.com" <info@teamameripak.com> X-Sender: info@teamameripak.com X-Mailer: CodeIgniter X-Priority: 3 (Normal) Message-ID: <5432c6527e6cc@teamameripak.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=&quot;B_ALT_5432c6527eaaf&quot; This is a multi-part message in MIME format. Your email application may not support this format. --B_ALT_5432c6527eaaf Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit ATTN: General DepartmentSomeone has submitted a Contact form on TeamAmeripak.com Contact Information: Name: Jon Leek Company: Taylor Digital Email Address: jonathan@taylordigital.com Phone: N/A Fax: N/A Message: Just testing from Taylor Digital. --B_ALT_5432c6527eaaf Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable &lt;!doctype html&gt; &lt;html&gt; &lt;head&gt; &lt;meta charset=3D&quot;UTF-8&quot;&gt; &lt;title&gt;Someone has submitted a Contact form on TeamAmeripak.com&lt;/title&gt; &lt;style&gt; body { font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; color: #666; } =09 th { text-align: left; } &lt;/style&gt; &lt;/head&gt; &lt;body&gt; &lt;a href=3D&quot;http://www.teamameripak.com/&quot;&gt;&lt;img src=3D&quot;http://www.teamamerip= ak.com/images/278x111/content/images/ameripak-logo.png&quot; alt=3D&quot;Ameripak Ind= ustries Inc.&quot; /&gt;&lt;/a&gt; &lt;p&gt;ATTN: General Department&lt;br /&gt;Someone has submitted a Contact form on T= eamAmeripak.com&lt;/p&gt; &lt;h3&gt;Contact Information:&lt;/h3&gt; &lt;table&gt; &lt;tr&gt; &lt;th&gt;Name:&lt;/th&gt; &lt;td&gt;Jon Leek&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;th&gt;Company:&lt;/th&gt; &lt;td&gt;Taylor Digital&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;th&gt;Email Address:&lt;/th&gt; &lt;td&gt;jonathan@taylordigital.com&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;th&gt;Phone:&lt;/th&gt; &lt;td&gt;N/A&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;th&gt;Fax:&lt;/th&gt; &lt;td&gt;N/A&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;h3&gt;Message:&lt;/h3&gt; &lt;p&gt;Just testing from Taylor Digital.&lt;/p&gt; &lt;/body&gt; &lt;/html&gt; --B_ALT_5432c6527eaaf--</pre> [error] => 2 )
Output for 5.0.0 - 5.1.6
<pre> Fatal error: Call to undefined function json_decode() in /in/X6Ahp on line 3
Process exited with code 255.
Output for 4.4.5 - 4.4.9
<pre> Fatal error: Call to undefined function: json_decode() in /in/X6Ahp on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.4
<pre> Fatal error: Call to undefined function: json_decode() in /in/X6Ahp on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
<pre> Fatal error: Call to undefined function: json_decode() in /in/X6Ahp on line 3