3v4l.org

run code in 300+ PHP versions simultaneously
<?php class X { private $call; public function __construct() { $this->call = function () { echo "x"; } } } $object = new X; $object->call();

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.00.0100.04020.12
5.6.160.0270.03720.59
5.6.150.0100.07718.14
5.6.140.0100.06718.18
5.6.130.0100.06018.18
5.6.120.0130.04020.91
5.6.110.0100.08320.98
5.6.100.0030.07720.98
5.6.90.0030.06321.11
5.6.80.0130.07020.40
5.5.300.0070.07317.95
5.5.290.0100.07717.99
5.5.280.0000.09020.88
5.5.270.0170.07320.77
5.5.260.0070.04020.73
5.5.250.0030.08020.69
5.5.240.0270.07320.08

preferences:
138.15 ms | 1394 KiB | 7 Q