3v4l.org

run code in 200+ PHP versions simultaneously
<?php date_default_timezone_set('dummy'); $dt = new DateTime('now');
based on Rli3e
Output for 5.6.0 - 7.2.6
Notice: date_default_timezone_set(): Timezone ID 'dummy' is invalid in /in/NDHgI on line 3