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(current_time('timestamp')); $date->add(new DateInterval('PT12H')); echo "<input type ='hidden' name='expiryDate' value='echo $date->format(\'Ymd His\')'>"; echo "</form>";
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.25, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.19, 8.3.0 - 8.3.7
<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 Error: Call to undefined function current_time() in /in/haWsi:10 Stack trace: #0 {main} thrown in /in/haWsi on line 10
Process exited with code 255.
Output for 5.5.24 - 5.5.35, 5.6.8 - 5.6.21
<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: Call to undefined function current_time() in /in/haWsi on line 10
Process exited with code 255.

preferences:
149.59 ms | 402 KiB | 199 Q