3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test{ public $arr = array('foo'=>function (){return 'bar';}); } $test = new test(); echo $test->arr['foo'];

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.0070.05320.15
7.0.00.0130.07020.22
5.6.160.0230.06320.71
5.6.150.0070.08318.18
5.6.140.0070.06318.24
5.6.130.0030.08318.18
5.6.120.0100.05320.99
5.6.110.0100.08021.02
5.6.100.0070.07021.11
5.6.90.0070.04321.09
5.6.80.0100.03720.35
5.5.300.0130.07018.07
5.5.290.0000.04718.08
5.5.280.0070.08320.87
5.5.270.0100.08020.79
5.5.260.0000.04320.86
5.5.250.0130.04020.49
5.5.240.0130.04020.23

preferences:
140.47 ms | 1394 KiB | 7 Q