# Slow DateTimeZone::getTransitions with no argument

- Thread: https://externals.io/message/100221
- Original archive: https://news-web.php.net/php.internals/100221
- Started by Andreas Treichel on 2017-08-15T21:54:20+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #100221 — Andreas Treichel — 2017-08-15T21:54:20+00:00

URL: https://externals.io/message/100221#100221

Hi,

Is the first entry in the return value of 
http://php.net/manual/en/datetimezone.gettransitions.php with the 
timestamp `PHP_INT_MIN` / ZEND_LONG_MIN intended?

The difference with no arguments is over 100 times slower on 64 bit systems:

DateTimeZone::getTransitions()
Duration: 0.075577

DateTimeZone::getTransitions(-62135596800)
Duration: 0.000587

https://3v4l.org/8osB8#output
