3v4l.org

run code in 300+ PHP versions simultaneously
<?php $obj = new class { protected function _doAdd($id) { echo "Added: " . $id; } } $addProduct = function($id) { $this->_doAdd($id); }; $addProduct->call($obj, 1);

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.07020.26
7.0.10.0100.08320.24
7.0.00.0030.07320.09
5.6.170.0230.04720.54
5.6.160.0100.08020.52
5.6.150.0030.05018.18
5.6.140.0000.07018.27
5.6.130.0030.08318.14
5.6.120.0030.04021.13
5.6.110.0000.09020.97
5.6.100.0100.07020.97
5.6.90.0070.04021.02
5.6.80.0100.06320.42
5.5.310.0230.03320.32
5.5.300.0030.08717.96
5.5.290.0100.07317.92
5.5.280.0070.05720.68
5.5.270.0170.07320.79
5.5.260.0030.05320.86
5.5.250.0200.07020.57
5.5.240.0270.07020.16

preferences:
135.21 ms | 1394 KiB | 7 Q