3v4l.org

run code in 300+ PHP versions simultaneously
<?php $original_dod = '23/01/17'; $dod = DateTimeImmutable::createFromFormat('d/m/y', $original_dod); $formated = $dod->format('d/m/19y'); $formatedISO = $dod->format('19y-m-d'); var_dump($formated); var_dump($formatedISO);

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.120.0100.01020.67
8.4.110.0080.00118.89
8.4.100.0130.00817.54
8.4.90.0130.00417.63
8.3.250.0110.00818.80
8.3.240.0120.00717.19
8.3.230.0050.01016.46
8.3.220.0050.00316.63
8.3.180.0060.00416.50
8.3.50.0050.00316.65
8.2.290.0030.00516.58

preferences:
27.93 ms | 403 KiB | 5 Q