<?php $cal = IntlGregorianCalendar::createFromDate(2024, 0, 1); $uninit = (new ReflectionClass(IntlGregorianCalendar::class)) ->newInstanceWithoutConstructor(); try { $cal->equals($uninit); } catch (Error $e) { echo $e->getMessage(), PHP_EOL; } try { intlcal_equals($cal, $uninit); } catch (Error $e) { echo $e->getMessage(), PHP_EOL; }
You have javascript disabled. You will not be able to edit any code.
Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).