3v4l.org

run code in 300+ PHP versions simultaneously
<?php <?php $arraydata = array('foo' => 3.0, 'bar' => 3.1); var_dump($arraydata);

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.20.0430.06720.21
7.0.10.0130.08320.23
7.0.00.0100.06720.16
5.6.160.0100.04720.46
5.6.150.0070.05018.27
5.6.140.0100.07018.11
5.6.130.0070.08018.18
5.6.120.0100.08020.96
5.6.110.0170.07021.13
5.6.100.0130.07020.98
5.6.90.0100.07021.11
5.6.80.0070.04020.39
5.5.300.0030.08318.08
5.5.290.0200.07018.03
5.5.280.0130.03720.87
5.5.270.0100.07020.97
5.5.260.0130.07720.86
5.5.250.0030.05320.58
5.5.240.0300.06720.28

preferences:
152.37 ms | 1398 KiB | 7 Q