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";
based on XZdWL
Output for 7.2.0 - 7.2.32, 7.3.0 - 7.3.20, 7.4.0 - 7.4.8, 8.0.0alpha1 - alpha3
2020-08-01 22:16:32 2020-08-01 23:16:32