3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time_zones = ['America/Indiana/Indianapolis', 'Atlantic/Reykjavik']; foreach ($time_zones as $tz_name) { $abbrev = DateTimeZone::listAbbreviations(); $abbrev = array_merge( ...array_values( $abbrev ) ); $abbrev = array_filter( $abbrev, function ( $entry ) use ( $tz_name ) { return $entry['timezone_id'] === $tz_name; } ); $does_dst = in_array( true, array_column( $abbrev, 'dst' ), true ); var_dump( $tz_name, $does_dst ); }

preferences:
71.48 ms | 409 KiB | 5 Q