3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1) class Foo { public function __construct($bar) { } } class Bar { } $foo = new Foo(new Bar());

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.6.150.0070.06318.19
5.6.140.0030.08718.18
5.6.130.0030.04318.17
5.6.120.0100.05721.12
5.6.110.0170.06720.98
5.6.100.0100.07720.98
5.6.90.0070.08021.12
5.6.80.0030.04320.28
5.5.300.0070.06017.94
5.5.290.0170.07018.06
5.5.280.0100.04020.96
5.5.270.0100.08020.83
5.5.260.0130.08720.75
5.5.250.0070.03720.49
5.5.240.3930.04320.25

preferences:
138.83 ms | 1394 KiB | 7 Q