3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a { public function __construct(){ b::flerp(); } } class b { protected static; public static function flerp() { self::$abc = 1; } } class c extends b { public function __construct() { print self::$abc."\n"; $a = new a(); print self::$abc."\n"; } } new c;

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.4.30.0200.04716.54
5.4.20.0200.03316.51
5.4.10.0230.03016.50
5.4.00.0200.05015.72
5.3.130.0230.03014.57
5.3.120.0130.04014.69
5.3.110.0200.03314.52
5.3.100.0200.03014.13
5.3.90.0200.03014.13
5.3.80.0100.04013.92
5.3.70.0100.04014.03
5.3.60.0170.03713.93
5.3.50.0170.03713.88
5.3.40.0170.03313.87
5.3.30.0200.03013.83
5.3.20.0070.04013.77
5.3.10.0100.05013.66
5.3.00.0230.04013.56

preferences:
140.97 ms | 1394 KiB | 7 Q