3v4l.org

run code in 300+ PHP versions simultaneously
<?php $class = new class { public function sayHi() { return "Hello world!"; } } $addProduct = function($id) { $this->sayHi(); }; $addProduct->call($someClass);

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.0330.08020.23
7.0.10.0030.08020.34
7.0.00.0030.07720.10
5.6.160.0030.04020.43
5.6.150.0100.05718.15
5.6.140.0070.06318.21
5.6.130.0100.04018.23
5.6.120.0070.08721.02
5.6.110.0070.09021.01
5.6.100.0130.05720.88
5.6.90.0070.08020.94
5.6.80.0170.07320.37
5.5.300.0100.08018.08
5.5.290.0070.04317.92
5.5.280.0100.06720.68
5.5.270.0070.06320.79
5.5.260.0130.07320.85
5.5.250.0030.07320.67
5.5.240.0200.07720.04

preferences:
142.81 ms | 1394 KiB | 7 Q