3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('dummy'); $dt = new DateTime('now');
Output for 5.6.0 - 5.6.26, 7.0.0 - 7.0.20, 7.1.0 - 7.1.20, 7.2.6 - 7.2.33, 7.3.16 - 7.3.31, 7.4.0 - 7.4.25, 8.0.0 - 8.0.12, 8.1rc1 - rc3
Notice: date_default_timezone_set(): Timezone ID 'dummy' is invalid in /in/NDHgI on line 3
Output for 7.3.32

preferences:
63.64 ms | 460 KiB | 5 Q