3v4l.org

run code in 300+ PHP versions simultaneously
<?php $id = '287080904421'; // Extract the "hidden" date part from the ID $date = substr($id, 1, 6); // Arbitrary decision // if year < 70, then assume 21st century // else assume 20th century if (substr($date, 0, 1) < 7) { $date = '20' . $date; } else { $date = '19' . $date; } $birthday = DateTime::createFromFormat('Ymd', $date); echo $birthday->format('Y-m-d'); $now = new DateTime(); $diff = $now->diff($birthday); var_dump($diff); echo $diff->y

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)
5.6.150.0070.08018.19
5.6.140.0030.04018.09
5.6.130.0000.05718.12
5.6.120.0070.04721.08
5.6.110.0100.04320.99
5.6.100.0100.05321.13
5.6.90.0030.05021.00
5.6.80.0300.06320.52
5.5.300.0100.05018.02
5.5.290.0030.04717.89
5.5.280.0030.04020.87
5.5.270.0130.07720.86
5.5.260.0130.07020.84
5.5.250.0170.07720.78
5.5.240.0170.07720.23

preferences:
141.44 ms | 1394 KiB | 7 Q