3v4l.org

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

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.0200.05320.06
7.0.10.0100.08720.10
7.0.00.0130.06020.12
5.6.170.0300.05720.54
5.6.160.0070.08020.56
5.6.150.0130.03318.29
5.6.140.0100.08018.14
5.6.130.0030.04318.12
5.6.120.0030.05020.94
5.6.110.0070.04321.00
5.6.100.0200.07720.95
5.6.90.0030.05020.96
5.6.80.0200.06320.41
5.5.310.0130.04720.34
5.5.300.0030.08017.95
5.5.290.0200.06717.95
5.5.280.0070.08720.73
5.5.270.0030.06020.86
5.5.260.0130.07720.72
5.5.250.0030.08020.49
5.5.240.0070.07020.36

preferences:
140.05 ms | 1394 KiB | 7 Q