3v4l.org

run code in 300+ PHP versions simultaneously
<?php class C { function foo() { return function() use ($this) { var_export($this); } } } $c = new C; $f = $c->foo(); $f();

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.10.0000.09320.22
7.0.00.0100.05020.21
5.6.160.0170.07320.56
5.6.150.0030.04018.19
5.6.140.0100.08018.21
5.6.130.0100.03718.14
5.6.120.0100.07720.96
5.6.110.0100.07721.05
5.6.100.0070.06021.01
5.6.90.0070.06320.96
5.6.80.0170.07320.45
5.5.300.0030.04017.98
5.5.290.0130.07318.01
5.5.280.0000.04320.96
5.5.270.0100.08020.77
5.5.260.0030.08720.61
5.5.250.0000.08720.69
5.5.240.0130.07720.04

preferences:
136.73 ms | 1398 KiB | 7 Q