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.0100.05320.29
5.6.160.0070.08720.41
5.6.150.0030.08718.18
5.6.140.0000.08718.17
5.6.130.0100.07318.21
5.6.120.0070.04720.98
5.6.110.0070.07720.95
5.6.100.0100.08020.84
5.6.90.0100.06721.12
5.6.80.0000.08720.50
5.5.300.0030.04017.98
5.5.290.0100.07717.92
5.5.280.0100.04720.96
5.5.270.0100.05020.86
5.5.260.0030.05020.67
5.5.250.0100.09020.57
5.5.240.4200.04320.26

preferences:
156.02 ms | 1394 KiB | 7 Q