3v4l.org

run code in 300+ PHP versions simultaneously
<?php $l = new StdClass; $l->d = new DateTime('2000-01-02 00:00:00'); $l->name = 'cd'; $m = new StdClass; $m->d = new DateTime('2000-01-01 00:00:00'); $m->name = 'ab'; $n = new StdClass; $n->d = new DateTime('2000-01-01 00:00:00'); $n-name = 'ef'; $result = [$l, $m,$n]; //reorder the campaigns, because the order is not correct between different campaigns. uasort($result, function ($a, $b) { $dateA = $a->d; $dateB = $b->d; if ($dateA == $dateB) { return 0; } return $dateA < $dateB ? 1 : -1; }); var_dump($result);

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)
7.1.60.0400.00733.24
7.1.50.0370.00732.78
7.1.40.0330.01332.44
7.1.30.0430.00732.46
7.1.20.0400.01032.34
7.1.10.0170.01314.26
7.1.00.0270.00314.52
7.0.200.0200.00714.73
7.0.190.0600.00714.63
7.0.180.0230.01014.13
7.0.170.0230.00714.27
7.0.160.0200.01314.40
7.0.150.0300.00714.20
7.0.140.0200.01014.25
7.0.130.0200.01014.63
7.0.120.0230.00714.50
7.0.110.0230.01014.45
7.0.100.0200.01314.47
7.0.90.0170.01314.39
7.0.80.0270.00314.17
7.0.70.0230.01314.29
7.0.60.0200.01014.21
7.0.50.0200.01014.29
7.0.40.0230.00714.39
7.0.30.0400.01014.62
7.0.20.0200.01014.45
7.0.10.0300.00314.32
7.0.00.0230.01014.31

preferences:
137.48 ms | 1398 KiB | 7 Q