3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = array(); $test['jkl'] = 2; $test['asdf'] = 1; array_push($test, 'foo' => 3); var_dump($test);

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.0200.07320.10
7.0.00.0170.05720.16
5.6.160.0200.07020.71
5.6.150.0070.03718.20
5.6.140.0100.08018.18
5.6.130.0070.08018.28
5.6.120.0070.08321.10
5.6.110.0000.04320.97
5.6.100.0030.09321.04
5.6.90.0100.03321.01
5.6.80.0130.07020.35
5.5.300.0070.08017.98
5.5.290.0130.07318.03
5.5.280.0100.08020.66
5.5.270.0170.07020.89
5.5.260.0070.04320.87
5.5.250.0070.03720.61
5.5.240.0170.06020.23

preferences:
140.37 ms | 1394 KiB | 7 Q