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.0000.04320.05
5.6.160.0130.03320.54
5.6.150.0100.08018.29
5.6.140.0030.06018.16
5.6.130.0100.08018.18
5.6.120.0030.06020.96
5.6.110.0230.05721.13
5.6.100.0070.08021.10
5.6.90.0070.08020.93
5.6.80.0170.07320.40
5.5.300.0130.07017.95
5.5.290.0100.08018.08
5.5.280.0100.07720.76
5.5.270.0070.05720.64
5.5.260.0170.07020.79
5.5.250.0000.07020.68
5.5.240.4130.03720.18

preferences:
142.59 ms | 1386 KiB | 7 Q