3v4l.org

run code in 300+ PHP versions simultaneously
<?php //define('B', 'pre'); class test { const A = @B; static function name() { echo self::A . 'key'; } static function init() { self::name(); } } test::init();

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.00.0130.06320.10
5.6.160.0030.07720.59
5.6.150.0100.07718.21
5.6.140.0070.07718.28
5.6.130.0070.05718.18
5.6.120.0000.09721.03
5.6.110.0070.03721.09
5.6.100.0030.04320.96
5.6.90.0170.07320.98
5.6.80.0070.08020.38
5.5.300.0130.07717.98
5.5.290.0170.07018.04
5.5.280.0100.08320.74
5.5.270.0130.08020.72
5.5.260.0100.04320.79
5.5.250.0070.04020.49
5.5.240.0100.04720.15

preferences:
137.99 ms | 1394 KiB | 7 Q