3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Parent extends Observer { function createChild() { $this->callme(); // this is OK return new Child (function() { $this->callme(); }); } } class Child { private $gatewayFunction; public function __constructor (Closure $gatewayFunction) { $this->gatewayFunction = $gatewayFunction; } public function __destroy() { $this->gatewayFunction->__invoke(); } }

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)
5.6.130.0070.07718.14
5.6.120.0070.04020.88
5.6.110.0130.07021.00
5.6.100.0070.08321.04
5.6.90.0130.04721.00
5.6.80.0070.08020.48
5.5.290.0030.08017.97
5.5.280.0130.08020.79
5.5.270.0030.06020.72
5.5.260.0170.07720.76
5.5.250.0130.08020.70
5.5.240.0030.06320.25
5.4.450.0800.06019.59
5.4.440.0930.05019.32
5.4.430.0800.05719.45
5.4.420.1000.04719.63
5.4.410.0770.05719.45
5.4.400.0870.05319.17
5.4.390.0770.05718.95
5.4.380.0800.05719.17
5.4.370.0730.06019.32
5.4.360.0900.04719.00
5.4.350.0700.06018.95
5.4.340.0870.06018.95
5.4.320.0870.05319.30
5.4.310.0870.05719.26
5.4.300.1030.06318.91
5.4.290.0870.04019.33
5.4.280.0900.07019.28
5.4.270.0870.06019.22
5.4.260.0800.05319.16
5.4.250.0930.05318.80
5.4.240.0730.05719.16
5.4.230.0670.07019.14
5.4.220.0700.06019.12
5.4.210.0630.05718.91
5.4.200.0800.05016.59
5.4.190.0830.04018.82
5.4.180.0830.06019.07
5.4.170.0870.05318.96
5.4.160.0870.06319.27
5.4.150.0870.04718.95
5.4.140.0930.04716.49
5.4.130.0770.04316.52
5.4.120.0900.04016.43
5.4.110.0730.04716.32
5.4.100.0970.05016.47
5.4.90.0800.05316.41
5.4.80.0800.05016.35
5.4.70.0670.06316.48
5.4.60.0030.05316.05
5.4.50.0000.08016.43
5.4.40.0230.07016.45
5.4.30.0300.04316.40
5.4.20.0200.05016.36

preferences:
137.36 ms | 1394 KiB | 7 Q