3v4l.org

run code in 300+ PHP versions simultaneously
<?php new class { private $stuff; public function __construct () { $this->stuff = function () { echo 'what'; } ($this->stuff)(); } }

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.20.0270.06720.23
7.0.10.0100.08720.06
7.0.00.0130.08020.11
5.6.170.0300.07320.44
5.6.160.0000.06020.62
5.6.150.0030.06718.18
5.6.140.0030.06718.25
5.6.130.0000.06318.14
5.6.120.0070.07720.98
5.6.110.0070.09320.97
5.6.100.0130.07720.98
5.6.90.0100.08721.07
5.6.80.0200.05720.38
5.5.310.0100.04720.34
5.5.300.0130.07718.02
5.5.290.0030.05017.99
5.5.280.0100.08020.84
5.5.270.0100.07320.80
5.5.260.0000.05320.83
5.5.250.0130.07320.67
5.5.240.0030.08320.25

preferences:
141.51 ms | 1394 KiB | 7 Q