3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $cal = IntlCalendar::createInstance('Asia/Riyadh', 'ar_SA'); $cal->set(2013,11,22); // friday var_dump( $cal->isWeekend() ); $cal->set(2013,11,23); // saturday var_dump( $cal->isWeekend() ); $cal->set(2013,11,24); // sunday var_dump( $cal->isWeekend() );
Output for 5.6.0 - 5.6.28, hhvm-3.10.0 - 3.13.2, 7.0.0 - 7.1.0
bool(false) bool(false) bool(false)
Output for 5.0.0 - 5.5.38
Fatal error: Class 'IntlCalendar' not found in /in/FoNY6 on line 2
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Undefined class name 'intlcalendar' in /in/FoNY6 on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Undefined class name 'intlcalendar' in /in/FoNY6 on line 2