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 5.5.24 - 5.5.31, 5.6.8 - 5.6.17, 7.0.0 - 7.0.2
Parse error: syntax error, unexpected '->' (T_OBJECT_OPERATOR) in /in/7IEsB on line 12
Process exited with code 255.

preferences:
69.02 ms | 402 KiB | 26 Q