3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tz = new DateTimeZone('America/Toronto'); var_dump($tz->getTransitions(strtotime("1800-01-01"), strtotime("1900-01-01")));
Output for 8.2.0 - 8.2.29, 8.3.0 - 8.3.28, 8.4.1 - 8.4.14, 8.5.0
array(2) { [0]=> array(5) { ["ts"]=> int(-5364663572) ["time"]=> string(25) "1799-12-31T23:40:28+00:00" ["offset"]=> int(-19052) ["isdst"]=> bool(false) ["abbr"]=> string(3) "LMT" } [1]=> array(5) { ["ts"]=> int(-2366736148) ["time"]=> string(25) "1895-01-01T05:17:32+00:00" ["offset"]=> int(-18000) ["isdst"]=> bool(false) ["abbr"]=> string(3) "EST" } }
Output for 8.4.15
/bin/php-8.4.15: /usr/lib/libm.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.4.15) /bin/php-8.4.15: /usr/lib/libm.so.6: version `GLIBC_2.35' not found (required by /bin/php-8.4.15) /bin/php-8.4.15: /usr/lib/libc.so.6: version `GLIBC_2.34' not found (required by /bin/php-8.4.15) /bin/php-8.4.15: /usr/lib/libc.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.4.15)
Process exited with code 1.
Output for 7.3.2 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.33
array(2) { [0]=> array(5) { ["ts"]=> int(-5364663572) ["time"]=> string(24) "1799-12-31T23:40:28+0000" ["offset"]=> int(-19052) ["isdst"]=> bool(false) ["abbr"]=> string(3) "LMT" } [1]=> array(5) { ["ts"]=> int(-2366736148) ["time"]=> string(24) "1895-01-01T05:17:32+0000" ["offset"]=> int(-18000) ["isdst"]=> bool(false) ["abbr"]=> string(3) "EST" } }
Output for 7.3.0 - 7.3.1
array(1) { [0]=> array(5) { ["ts"]=> int(-5364663572) ["time"]=> string(24) "1799-12-31T23:40:28+0000" ["offset"]=> int(-19052) ["isdst"]=> bool(false) ["abbr"]=> string(3) "LMT" } }

preferences:
92.36 ms | 411 KiB | 5 Q