3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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')); echo "<input type ='hidden' name='expiryDate' value='echo $date->format(\'Ymd His\')'>"; echo "</form>";
based on haWsi
Output for 7.0.0 - 7.2.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 (1452830506) at position 8 (0): Unexpected character in /in/oBanl:10 Stack trace: #0 /in/oBanl(10): DateTime->__construct('1452830506') #1 {main} thrown in /in/oBanl on line 10
Process exited with code 255.
Output for 5.5.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 (1452830506) at position 8 (0): Unexpected character' in /in/oBanl:10 Stack trace: #0 /in/oBanl(10): DateTime->__construct('1452830506') #1 {main} thrown in /in/oBanl on line 10
Process exited with code 255.