It is DST in America/New_York
It is DST in America/Chicago

<?php // demo/dst.php
/**
 * Demonstrate Daylight-Saving Calculation
 * Ref: https://www.php.net/manual/en/timezones.php
 */
error_reporting(E_ALL);
echo 
'<pre>';

// Save the original timezone
$previous_timezone date_default_timezone_get();

// Set the timezone where you want to make the determination (Never DST in Phoenix).
date_default_timezone_set('America/Phoenix');
if (
date('I')) echo PHP_EOL "It is DST in " date_default_timezone_get();

date_default_timezone_set('America/New_York');
if (
date('I')) echo PHP_EOL "It is DST in " date_default_timezone_get();

// Put things back to original settings
date_default_timezone_set($previous_timezone);
if (
date('I')) echo PHP_EOL "It is DST in " date_default_timezone_get();


// Show the source code
echo PHP_EOL;
highlight_file(__FILE__);