3v4l.org

run code in 300+ PHP versions simultaneously
<?php class bla { public p = "real property"; } $foo = array(); $foo['bar'] = new bla; $baz = 'p'; echo $foo['bar']::$baz;

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.10.0030.05020.23
7.0.00.0070.04320.25
5.6.160.0100.06020.47
5.6.150.0030.04018.23
5.6.140.0100.07318.19
5.6.130.0030.04318.23
5.6.120.0030.05020.98
5.6.110.0030.06320.88
5.6.100.0070.04320.97
5.6.90.0100.07021.09
5.6.80.0170.07020.28
5.5.300.0130.07717.98
5.5.290.0100.07718.09
5.5.280.0030.04020.80
5.5.270.0130.07020.89
5.5.260.0030.04720.79
5.5.250.0130.04720.58
5.5.240.0200.07720.18

preferences:
147.59 ms | 1394 KiB | 7 Q