3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function __construct() : self { return $this; } } var_dump((new Foo)->__construct());

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.00.0130.04720.06
5.6.160.0030.07720.45
5.6.150.0000.04318.20
5.6.140.0030.08018.21
5.6.130.0000.08718.15
5.6.120.0100.03320.97
5.6.110.0170.07020.98
5.6.100.0070.04721.01
5.6.90.0070.08721.02
5.6.80.0300.06020.29
5.5.300.0200.06317.98
5.5.290.0100.07317.98
5.5.280.0030.04020.82
5.5.270.0070.05320.65
5.5.260.0000.04720.68
5.5.250.0030.08320.59
5.5.240.0230.07720.16

preferences:
140.81 ms | 1394 KiB | 7 Q