3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function __construct() { A::a(); } public static function a() { static $a = new A; } } new 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.20.0300.04720.01
7.0.10.0130.08320.30
7.0.00.0100.08320.20
5.6.170.0300.04720.48
5.6.160.0070.08320.57
5.6.150.0100.06718.21
5.6.140.0130.06718.28
5.6.130.0000.04718.25
5.6.120.0030.05320.99
5.6.110.0130.07021.11
5.6.100.0070.07720.98
5.6.90.0100.08021.07
5.6.80.0070.08020.38
5.5.310.0330.07320.19
5.5.300.0130.08018.03
5.5.290.0100.05717.94
5.5.280.0030.05020.78
5.5.270.0100.04020.77
5.5.260.0030.06320.77
5.5.250.0000.04320.59
5.5.240.0230.07020.22

preferences:
138.17 ms | 1394 KiB | 7 Q