3v4l.org

run code in 300+ PHP versions simultaneously
<?php class C { function foo() { return function() { 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.0200.07320.27
7.0.00.0030.04320.09
5.6.160.0030.08020.61
5.6.150.0030.08318.16
5.6.140.0070.06018.21
5.6.130.0100.04718.24
5.6.120.0070.07321.03
5.6.110.0070.08021.00
5.6.100.0130.07021.12
5.6.90.0170.05721.13
5.6.80.0130.07720.41
5.5.300.0030.04318.08
5.5.290.0030.08718.05
5.5.280.0070.04020.98
5.5.270.0070.05320.80
5.5.260.0070.06320.80
5.5.250.0070.07320.70
5.5.240.0100.08720.38

preferences:
141.77 ms | 1394 KiB | 7 Q