3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public $var = self::$val[1]; protected static $val = [ 0 => 'a', 1 => 'b' ]; } $a = new A(); echo $a->var;

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.09020.16
5.6.160.0030.04020.45
5.6.150.0030.08318.21
5.6.140.0100.03718.31
5.6.130.0070.03718.11
5.6.120.0100.07720.96
5.6.110.0030.09021.00
5.6.100.0270.06320.99
5.6.90.0170.07320.97
5.6.80.0070.07720.45
5.5.300.0130.06017.94
5.5.290.0030.04717.98
5.5.280.0070.09320.84
5.5.270.0100.08320.71
5.5.260.0100.08320.76
5.5.250.0100.05720.58
5.5.240.4200.04020.23

preferences:
141.49 ms | 1394 KiB | 7 Q