3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function a([] $a) { echo count($a); } }; $a = [1, 2, 3]; $A = new A(); $A->a($a);

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.05320.37
7.0.00.0070.06720.06
5.6.160.0000.09020.70
5.6.150.0030.06318.19
5.6.140.0030.05318.19
5.6.130.0070.07318.18
5.6.120.0130.03721.00
5.6.110.0070.08021.12
5.6.100.0030.05321.02
5.6.90.0030.04721.04
5.6.80.0070.06720.38
5.5.300.0100.07717.98
5.5.290.0100.04017.99
5.5.280.0030.04320.80
5.5.270.0030.05320.84
5.5.260.0070.05720.76
5.5.250.0100.07020.59
5.5.240.0230.06720.16

preferences:
147.85 ms | 1398 KiB | 8 Q