3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Runner { public function run() { $result = $this->process(); $result(); } private function process() { return function() { $this->do_run(); } $runner = $this; return function() use ($runner) { $runner->do_run(); }; } private function do_run() { echo __METHOD__, "\n"; } } $runner = new Runner(); $runner->run();

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.280.0100.06712.39
5.4.270.0080.06012.39
5.4.260.0140.08312.39
5.4.250.0160.06612.39
5.4.240.0090.05612.39
5.4.230.0150.05712.38
5.4.220.0080.05312.38
5.4.210.0080.05412.38
5.4.200.0100.06312.38
5.4.190.0060.05412.38
5.4.180.0080.05112.38
5.4.170.0100.05412.38
5.4.160.0090.06112.39
5.4.150.0080.05212.38
5.4.140.0100.05512.07
5.4.130.0090.04712.05
5.4.120.0070.05212.02
5.4.110.0070.05512.01
5.4.100.0100.06612.01
5.4.90.0100.07112.01
5.4.80.0100.05512.01
5.4.70.0080.05012.00
5.4.60.0030.05512.01
5.4.50.0060.05112.00
5.4.40.0100.04912.00
5.4.30.0140.04611.99
5.4.20.0150.05411.99
5.4.10.0110.06411.99
5.4.00.0100.08011.48
5.3.280.0090.04812.71
5.3.270.0140.06912.72
5.3.260.0110.05312.72
5.3.250.0090.03712.72
5.3.240.0090.03512.72
5.3.230.0090.04412.71
5.3.220.0100.03812.68
5.3.210.0050.04112.68
5.3.200.0060.04012.68
5.3.190.0070.04012.67
5.3.180.0090.03812.67
5.3.170.0050.04512.67
5.3.160.0070.04312.67
5.3.150.0100.05312.67
5.3.140.0140.04612.66
5.3.130.0090.05212.65
5.3.120.0140.04712.66
5.3.110.0120.07912.66
5.3.100.0140.04312.12
5.3.90.0130.04812.08
5.3.80.0120.04412.07
5.3.70.0090.04012.08
5.3.60.0110.04212.06
5.3.50.0060.03712.00
5.3.40.0050.03912.00
5.3.30.0080.03611.96
5.3.20.0070.03711.75
5.3.10.0060.03811.71
5.3.00.0070.03611.70

preferences:
246.04 ms | 1394 KiB | 8 Q