3v4l.org

run code in 300+ PHP versions simultaneously
<?php public class Foo { public function __constructor(public string $foo, public int $bar)(} } $a = ['bar' =>15, 'foo' => 'daaaa']; $b = new Foo(...$a); var_dump($b);

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)
8.2.100.0300.00418.44
8.2.90.0240.00618.44
8.2.80.0320.00018.44
8.2.70.0370.00318.44
8.2.60.0300.00018.44
8.2.50.0180.01218.44
8.2.40.0280.00018.44
8.2.30.0160.01118.44
8.2.20.0250.00418.44
8.2.10.0160.01218.44
8.2.00.0230.00418.44
8.1.230.0290.00018.44
8.1.220.0200.00818.44
8.1.210.0240.00318.44
8.1.200.0210.00618.44
8.1.190.0220.00718.44
8.1.180.0220.00618.44
8.1.170.0100.01718.44
8.1.160.0210.00418.44
8.1.150.0270.00018.44
8.1.140.0270.00018.44
8.1.130.0220.00418.44
8.1.120.0200.00718.44
8.1.110.0210.00518.44
8.1.100.0250.00318.44
8.1.90.0220.00518.44
8.1.80.0190.00618.44
8.1.70.0260.00018.44
8.1.60.0260.00018.44
8.1.50.0160.01018.44
8.1.40.0230.00418.44
8.1.30.0230.00318.44
8.1.20.0270.00318.44
8.1.10.0170.01018.44
8.1.00.0190.00518.44
8.0.300.0250.00418.44
8.0.290.0320.00518.44
8.0.280.0220.00318.44
8.0.270.0230.00318.44
8.0.260.0170.00818.44
8.0.250.0180.00718.44
8.0.240.0190.00818.44
8.0.230.0190.00818.44
8.0.220.0220.00318.44
8.0.210.0190.00618.44
8.0.200.0230.00318.44
8.0.190.0220.00318.44
8.0.180.0170.01218.44
8.0.170.0210.00518.44
8.0.160.0280.00018.44
8.0.150.0180.00618.44
8.0.140.0220.00318.44
8.0.130.0180.00418.44
8.0.120.0210.00318.44
8.0.110.0240.00018.44
8.0.100.0260.00018.44
8.0.90.0200.00718.44
8.0.80.0230.00318.44
8.0.70.0150.01218.44
8.0.60.0260.00018.44
8.0.50.0250.00018.44
8.0.30.0190.00618.44
8.0.20.0210.00618.44
8.0.10.0220.00318.44

preferences:
145.17 ms | 1000 KiB | 7 Q