3v4l.org

run code in 300+ PHP versions simultaneously
<?php class lol { function one() { return array_map(function ($elem) { return $this->parse($elem); }, array('one', 'two', 'three')); } function parse($elem) { return strtoupper($elem) } } $lol = new lol; var_dump($lol->one());

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.0.10.0130.04720.26
7.0.00.0030.05720.20
5.6.160.0130.07720.45
5.6.150.0070.08018.13
5.6.140.0130.06718.11
5.6.130.0070.08018.18
5.6.120.0070.05021.00
5.6.110.0100.06721.15
5.6.100.0100.08721.02
5.6.90.0000.04321.00
5.6.80.0100.06720.48
5.5.300.0100.08017.95
5.5.290.0070.07717.93
5.5.280.0130.07720.75
5.5.270.0070.08720.77
5.5.260.0070.04720.88
5.5.250.0130.07020.56
5.5.240.0130.04720.16

preferences:
141.84 ms | 1394 KiB | 7 Q