3v4l.org

run code in 300+ PHP versions simultaneously
<?php $iatJWT = (new \DateTime())->format('Y-m-d H:i:s'); echo $iatJWT echo "\n"; $expJWT = (new \DateTime($iatJWT))->modify('+1 hour')->format('Y-m-d H:i:s'); echo $expJWT; echo "\n";
Output for 7.4.0 - 7.4.8
Parse error: syntax error, unexpected 'echo' (T_ECHO), expecting ';' or ',' in /in/XZdWL on line 5
Process exited with code 255.
Output for 7.2.0 - 7.2.32, 7.3.0 - 7.3.20
Parse error: syntax error, unexpected 'echo' (T_ECHO), expecting ',' or ';' in /in/XZdWL on line 5
Process exited with code 255.

preferences:
229.84 ms | 1399 KiB | 70 Q