3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class First(){ const id = __CLASS__; public static function start(){ static::run(new static); } protected static function run(First $instance){ echo __CLASS__, PHP_EOL; $insttance->dynamicRun(); } protected function dynamicRun(){ echo self::id, PHP_EOL, get_class($this); } } class Second extends First(){ const id = __CLASS__; public static function start(){ parent::run(new static); } } Second::start();

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.250.0160.05312.39
5.4.240.0080.05812.39
5.4.230.0090.05212.38
5.4.220.0040.05412.38
5.4.210.0040.03912.38
5.4.200.0070.03812.38
5.4.190.0040.04012.38
5.4.180.0100.04412.38
5.4.170.0060.03512.38
5.4.160.0130.03512.37
5.4.150.0090.03812.37
5.4.140.0210.03512.06
5.4.130.0080.04912.04
5.4.120.0060.05012.01
5.4.110.0100.04612.01
5.4.100.0050.04812.00
5.4.90.0050.05212.00
5.4.80.0040.04512.00
5.4.70.0090.03512.00
5.4.60.0080.03712.00
5.4.50.0070.03712.00
5.4.40.0060.03911.98
5.4.30.0030.04211.98
5.4.20.0050.03811.98
5.4.10.0070.03611.98
5.4.00.0070.03711.48
5.3.280.0060.04112.71
5.3.270.0070.04112.72
5.3.260.0060.04112.71
5.3.250.0070.04112.72
5.3.240.0060.04112.72
5.3.230.0070.04012.71
5.3.220.0130.04912.68
5.3.210.0100.05012.68
5.3.200.0090.04912.68
5.3.190.0100.04812.68
5.3.180.0060.04012.67
5.3.170.0070.03912.67
5.3.160.0110.04012.68
5.3.150.0150.04712.67
5.3.140.0090.04612.66
5.3.130.0090.05312.66
5.3.120.0120.04812.66
5.3.110.0060.05312.65
5.3.100.0090.04712.11
5.3.90.0070.03912.09
5.3.80.0070.03812.07
5.3.70.0040.04012.08
5.3.60.0100.04712.07
5.3.50.0070.04812.01
5.3.40.0050.04612.01
5.3.30.0050.03711.98
5.3.20.0040.04011.75
5.3.10.0080.03811.71
5.3.00.0140.04211.70

preferences:
139.03 ms | 1386 KiB | 7 Q