3v4l.org

run code in 300+ PHP versions simultaneously
<?php $email = isset($_REQUEST['email'])? $_REQUEST['email']: ""; $name=isset($_REQUEST['name'] )? $_REQUEST['name']: "" ; $phone = isset($_REQUEST['phone'] )? $_REQUEST['phone']: ""; $company = isset($_REQUEST['company'] )? $_REQUEST['company']: ""; $comment = isset($_REQUEST['commenttext'] )? $_REQUEST['commenttext']: ""; $title = isset($_REQUEST['title '] )? $_REQUEST['title ']: ""; // $budget = isset($_REQUEST['budget'] )? $_REQUEST['budget']: ""; // $country = isset($_REQUEST['country'] )? $_REQUEST['country']: ""; // $fax = isset($_REQUEST['fax'] )? $_REQUEST['fax']: ""; // $title = isset($_REQUEST['subject'] )? $_REQUEST['subject']: ""; //$link= $_SERVER['HTTP_REFERER']; //$IPaddress = $_SERVER['REMOTE_ADDR']; $file= isset($_FILES['upload']['name']) ? $_FILES['upload']['name']:""; //$fieldOrder=explode(',',$_REQUEST['fieldOrder']); if(count($fieldOrder)<=1) { // $extrafields = $_REQUEST['fieldOrder']; } else { for($i=0;$i<count($fieldOrder);$i++) { if($fieldOrder[$i]!="") { $extrafields = $extrafields . " | " .$_REQUEST[$fieldOrder[$i]]; } } } if($file!="") { move_uploaded_file($_FILES['upload']['tmp_name'],"../lakeb2b/re-marketing/upload/".str_replace(" ","-",$_FILES['upload']['name'])); $extrafields=$extrafields." | " ."http://localhost/lakeb2b/re-marketing/upload/".str_replace(" ","-","$file"); } ?> <html> <body onLoad="javascript:document.frmTracking.submit();"> <form action="https://www.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8" method="post" name="frmTracking" id="frmTracking" > <input name="email" type="hidden" value="<?php echo $email; ?>"/> <input name="first_name" type="hidden" value="<?php echo $name; ?>"/> <input name="phone" type="hidden" value="<?php echo $phone; ?>"/> <input name="company" type="hidden" value="<?php echo $company; ?>"/> <input name="URL" type="hidden" value="<?php echo $link; ?>"/> <input name="street" type="hidden" value="<?php echo $Address; ?>"/> <input name="country" type="hidden" value="<?php echo $country; ?>"/> <input name="retURL" type="hidden" value="http://localhost/lakeb2b/re-marketing/thank-you.php"/> <input name="title" type="hidden" value="<?php echo $title; ?>"/> <input name="lead_source" type="hidden" value="Nurtured Leads"/> <input type=hidden name="oid" value="00D90000000cdxt"/> <input name="description" type="hidden" value="<?php echo $extrafields; ?>"/> <input name="00N90000003Gb75EAC" type="hidden" value="<?php echo $Comments; ?>"/> <input name="faxOptOut" type="hidden" value="<?php echo $fax; ?>"/> <input name="00N90000003Gb3O" type="hidden" value="<?php echo $budget; ?>"/> <input name="00N90000006pnvV" type="hidden" value="<?php echo $IPaddress; ?>"/> </form> </body> </html>
Output for 8.0.10 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Warning: Undefined variable $fieldOrder in /in/dvX42 on line 19 Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /in/dvX42:19 Stack trace: #0 {main} thrown in /in/dvX42 on line 19
Process exited with code 255.
Output for 8.0.0 - 8.0.9
Warning: Undefined variable $fieldOrder in /in/dvX42 on line 19 Fatal error: Uncaught TypeError: count(): Argument #1 ($var) must be of type Countable|array, null given in /in/dvX42:19 Stack trace: #0 {main} thrown in /in/dvX42 on line 19
Process exited with code 255.
Output for 7.2.0 - 7.2.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.33
Notice: Undefined variable: fieldOrder in /in/dvX42 on line 19 Warning: count(): Parameter must be an array or an object that implements Countable in /in/dvX42 on line 19 <html> <body onLoad="javascript:document.frmTracking.submit();"> <form action="https://www.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8" method="post" name="frmTracking" id="frmTracking" > <input name="email" type="hidden" value=""/> <input name="first_name" type="hidden" value=""/> <input name="phone" type="hidden" value=""/> <input name="company" type="hidden" value=""/> <input name="URL" type="hidden" value=" Notice: Undefined variable: link in /in/dvX42 on line 51 "/> <input name="street" type="hidden" value=" Notice: Undefined variable: Address in /in/dvX42 on line 52 "/> <input name="country" type="hidden" value=" Notice: Undefined variable: country in /in/dvX42 on line 53 "/> <input name="retURL" type="hidden" value="http://localhost/lakeb2b/re-marketing/thank-you.php"/> <input name="title" type="hidden" value=""/> <input name="lead_source" type="hidden" value="Nurtured Leads"/> <input type=hidden name="oid" value="00D90000000cdxt"/> <input name="description" type="hidden" value=" Notice: Undefined variable: extrafields in /in/dvX42 on line 58 "/> <input name="00N90000003Gb75EAC" type="hidden" value=" Notice: Undefined variable: Comments in /in/dvX42 on line 59 "/> <input name="faxOptOut" type="hidden" value=" Notice: Undefined variable: fax in /in/dvX42 on line 60 "/> <input name="00N90000003Gb3O" type="hidden" value=" Notice: Undefined variable: budget in /in/dvX42 on line 61 "/> <input name="00N90000006pnvV" type="hidden" value=" Notice: Undefined variable: IPaddress in /in/dvX42 on line 62 "/> </form> </body> </html>
Output for 7.3.32 - 7.3.33
Warning: count(): Parameter must be an array or an object that implements Countable in /in/dvX42 on line 19 <html> <body onLoad="javascript:document.frmTracking.submit();"> <form action="https://www.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8" method="post" name="frmTracking" id="frmTracking" > <input name="email" type="hidden" value=""/> <input name="first_name" type="hidden" value=""/> <input name="phone" type="hidden" value=""/> <input name="company" type="hidden" value=""/> <input name="URL" type="hidden" value=""/> <input name="street" type="hidden" value=""/> <input name="country" type="hidden" value=""/> <input name="retURL" type="hidden" value="http://localhost/lakeb2b/re-marketing/thank-you.php"/> <input name="title" type="hidden" value=""/> <input name="lead_source" type="hidden" value="Nurtured Leads"/> <input type=hidden name="oid" value="00D90000000cdxt"/> <input name="description" type="hidden" value=""/> <input name="00N90000003Gb75EAC" type="hidden" value=""/> <input name="faxOptOut" type="hidden" value=""/> <input name="00N90000003Gb3O" type="hidden" value=""/> <input name="00N90000006pnvV" type="hidden" value=""/> </form> </body> </html>
Output for 5.4.1 - 5.4.45, 5.5.24 - 5.5.35, 5.6.8 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.25
Notice: Undefined variable: fieldOrder in /in/dvX42 on line 19 <html> <body onLoad="javascript:document.frmTracking.submit();"> <form action="https://www.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8" method="post" name="frmTracking" id="frmTracking" > <input name="email" type="hidden" value=""/> <input name="first_name" type="hidden" value=""/> <input name="phone" type="hidden" value=""/> <input name="company" type="hidden" value=""/> <input name="URL" type="hidden" value=" Notice: Undefined variable: link in /in/dvX42 on line 51 "/> <input name="street" type="hidden" value=" Notice: Undefined variable: Address in /in/dvX42 on line 52 "/> <input name="country" type="hidden" value=" Notice: Undefined variable: country in /in/dvX42 on line 53 "/> <input name="retURL" type="hidden" value="http://localhost/lakeb2b/re-marketing/thank-you.php"/> <input name="title" type="hidden" value=""/> <input name="lead_source" type="hidden" value="Nurtured Leads"/> <input type=hidden name="oid" value="00D90000000cdxt"/> <input name="description" type="hidden" value=" Notice: Undefined variable: extrafields in /in/dvX42 on line 58 "/> <input name="00N90000003Gb75EAC" type="hidden" value=" Notice: Undefined variable: Comments in /in/dvX42 on line 59 "/> <input name="faxOptOut" type="hidden" value=" Notice: Undefined variable: fax in /in/dvX42 on line 60 "/> <input name="00N90000003Gb3O" type="hidden" value=" Notice: Undefined variable: budget in /in/dvX42 on line 61 "/> <input name="00N90000006pnvV" type="hidden" value=" Notice: Undefined variable: IPaddress in /in/dvX42 on line 62 "/> </form> </body> </html>

preferences:
243.27 ms | 406 KiB | 242 Q