3v4l.org

run code in 300+ PHP versions simultaneously
<?php $easypaisaAmount = 1200; $orderid =1001; echo "<form action='https://easypay.easypaisa.com.pk/easypay/Index.jsf' method='POST' target='_blank'>"; echo "<input name='storeId' value='2023' hidden = 'true'/>"; echo"<input name='amount' value='$easypaisaAmount' hidden = 'true'/>"; echo"<input name='postBackURL' value='ourhatti.com/test.php' hidden = 'true'/>"; echo "<input name='orderRefNum' value='$orderid' hidden = 'true'/>"; $date = new DateTime(time()); $date->add(new DateInterval('PT12H')); $mydate = $date->format("Ymd His"); echo "<input type ='hidden' name='expiryDate' value='$mydate'>"; echo "</form>";
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.33, 7.2.0 - 7.2.25, 7.3.0 - 7.3.12, 7.4.0
<form action='https://easypay.easypaisa.com.pk/easypay/Index.jsf' method='POST' target='_blank'><input name='storeId' value='2023' hidden = 'true'/><input name='amount' value='1200' hidden = 'true'/><input name='postBackURL' value='ourhatti.com/test.php' hidden = 'true'/><input name='orderRefNum' value='1001' hidden = 'true'/> Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (1452830685) at position 8 (8): Unexpected character in /in/olLHf:10 Stack trace: #0 /in/olLHf(10): DateTime->__construct('1452830685') #1 {main} thrown in /in/olLHf on line 10
Process exited with code 255.
Output for 5.5.0 - 5.5.38, 5.6.0 - 5.6.28
<form action='https://easypay.easypaisa.com.pk/easypay/Index.jsf' method='POST' target='_blank'><input name='storeId' value='2023' hidden = 'true'/><input name='amount' value='1200' hidden = 'true'/><input name='postBackURL' value='ourhatti.com/test.php' hidden = 'true'/><input name='orderRefNum' value='1001' hidden = 'true'/> Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1452830685) at position 8 (8): Unexpected character' in /in/olLHf:10 Stack trace: #0 /in/olLHf(10): DateTime->__construct('1452830685') #1 {main} thrown in /in/olLHf on line 10
Process exited with code 255.

preferences:
106.61 ms | 402 KiB | 134 Q