3v4l.org

run code in 300+ PHP versions simultaneously
<?php class closurecaller { public function doSomething() { var_dump('i am called'); } public function callClosure() { $closure = function() use ($this) { $this->doSomething(); }; return $closure; } } $cc = new closurecaller(); call_user_func($cc->callClosure());

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.4.170.0160.04312.39
5.4.160.0170.04212.38
5.4.150.0140.04612.38
5.4.140.0160.04312.07
5.4.130.0160.04312.05
5.4.120.0170.04112.01
5.4.110.0150.04312.01
5.4.100.0220.06912.01
5.4.90.0190.03912.00
5.4.80.0220.05312.01
5.4.70.0230.06612.00
5.4.60.0200.03812.00
5.4.50.0160.04112.00
5.4.40.0150.04411.99
5.4.30.0170.04311.98
5.4.20.0220.03811.98
5.4.10.0150.04211.98
5.4.00.0190.05311.48
5.3.270.0180.04212.72
5.3.260.0190.04312.72
5.3.250.0130.04712.72
5.3.240.0160.04412.72
5.3.230.0160.04612.71
5.3.220.0150.04512.68
5.3.210.0180.06012.68
5.3.200.0160.04412.68
5.3.190.0190.04312.68
5.3.180.0160.04312.67
5.3.170.0190.04112.67
5.3.160.0280.06212.67
5.3.150.0180.04312.67
5.3.140.0210.05412.66
5.3.130.0190.04112.66
5.3.120.0150.04512.66
5.3.110.0160.04512.65
5.3.100.0170.04312.13
5.3.90.0150.04512.11
5.3.80.0180.04312.09
5.3.70.0150.04712.09
5.3.60.0150.04412.07
5.3.50.0160.04412.02
5.3.40.0160.04512.02
5.3.30.0160.04112.00
5.3.20.0180.04111.77
5.3.10.0190.03811.73
5.3.00.0160.04311.71

preferences:
141.22 ms | 1394 KiB | 7 Q