3v4l.org

run code in 500+ PHP versions simultaneously
<?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; }

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).

VersionSystem time (s)User time (s)Memory (MiB)
8.4.180.0450.01023.71

preferences:
43.92 ms | 480 KiB | 4 Q