3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait T1 { private function a1() { echo 1; } protected function a() { echo 2; } } class A{ public static function s(){ use T1; $this->a1(); $this->a(); } } A::s();

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.0070.09020.19
7.0.00.0070.08320.16
5.6.160.0030.07020.50
5.6.150.0070.07318.22
5.6.140.0100.07718.23
5.6.130.0100.08018.18
5.6.120.0100.07721.00
5.6.110.0070.07021.03
5.6.100.0100.08021.00
5.6.90.0070.08021.00
5.6.80.0030.08320.53
5.5.300.0130.06317.99
5.5.290.0130.07317.95
5.5.280.0100.06020.90
5.5.270.0070.06020.64
5.5.260.0200.07020.88
5.5.250.0100.08020.68
5.5.240.0130.06320.07

preferences:
241.39 ms | 1394 KiB | 8 Q