3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo "ALL:", PHP_EOL; echo count(DateTimeZone::listIdentifiers(DateTimeZone::ALL)); echo PHP_EOL, "PER_COUNTRY:", PHP_EOL; echo count(DateTimeZone::listIdentifiers(DateTimeZone::PER_COUNTRY, "US")); echo PHP_EOL, "ALL_WITH_BC:", PHP_EOL; echo count(DateTimeZone::listIdentifiers(DateTimeZone::ALL_WITH_BC)); echo PHP_EOL;
based on AAueA
Output for 7.1.0, 7.2.0
ALL: 425 PER_COUNTRY: 29 ALL_WITH_BC: 593
Output for 7.0.20, 7.1.5 - 7.1.10
ALL: 425 PER_COUNTRY: 29 ALL_WITH_BC: 594
Output for 5.6.20 - 5.6.21, 7.0.5 - 7.0.6
ALL: 420 PER_COUNTRY: 29 ALL_WITH_BC: 587
Output for 5.6.19, 7.0.4
ALL: 417 PER_COUNTRY: 29 ALL_WITH_BC: 584
Output for 5.6.15 - 5.6.18, 7.0.0 - 7.0.3
ALL: 418 PER_COUNTRY: 29 ALL_WITH_BC: 584
Output for 5.6.28
ALL: 422 PER_COUNTRY: 29 ALL_WITH_BC: 590
Output for 5.5.24 - 5.6.14
ALL: 417 PER_COUNTRY: 29 ALL_WITH_BC: 583
Output for 5.4.34 - 5.4.45
ALL: 416 PER_COUNTRY: 29 ALL_WITH_BC: 582
Output for 5.4.28 - 5.4.32
ALL: 417 PER_COUNTRY: 29 ALL_WITH_BC: 580
Output for 5.4.21 - 5.4.27
ALL: 416 PER_COUNTRY: 29 ALL_WITH_BC: 579
Output for 5.3.24 - 5.3.29, 5.4.14 - 5.4.20
ALL: 419 PER_COUNTRY: 30 ALL_WITH_BC: 579
Output for 5.3.11 - 5.3.23, 5.4.1 - 5.4.13
ALL: 416 PER_COUNTRY: 30 ALL_WITH_BC: 576
Output for 5.3.9 - 5.3.10, 5.4.0
ALL: 415 PER_COUNTRY: 30 ALL_WITH_BC: 575
Output for 5.3.7 - 5.3.8
ALL: 413 PER_COUNTRY: 30 ALL_WITH_BC: 573
Output for 5.3.6
ALL: 411 PER_COUNTRY: 30 ALL_WITH_BC: 571
Output for 5.3.4 - 5.3.5
ALL: 408 PER_COUNTRY: 27 ALL_WITH_BC: 568
Output for 5.3.3
ALL: 407 PER_COUNTRY: 27 ALL_WITH_BC: 565
Output for 5.3.2
ALL: 406 PER_COUNTRY: 27 ALL_WITH_BC: 564
Output for 5.3.1
ALL: 403 PER_COUNTRY: 27 ALL_WITH_BC: 561
Output for 5.3.0
ALL: 402 PER_COUNTRY: 27 ALL_WITH_BC: 560
Output for 5.2.0 - 5.2.17
ALL: Fatal error: Undefined class constant 'ALL' in /in/XYLRo on line 3
Process exited with code 255.
Output for 5.0.2 - 5.1.6
ALL: Fatal error: Class 'DateTimeZone' not found in /in/XYLRo on line 3
Process exited with code 255.
Output for 5.0.0 - 5.0.1
ALL: Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/XYLRo on line 2 PHP_EOL Fatal error: Class 'DateTimeZone' not found in /in/XYLRo on line 3
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected ')', expecting '(' in /in/XYLRo on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1
Parse error: parse error, unexpected ')', expecting '(' in /in/XYLRo on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `'('' in /in/XYLRo on line 3
Process exited with code 255.