3v4l.org

run code in 300+ PHP versions simultaneously
<?php <?php $array = [[1,2,3,4,5]]; $a = $array['0']; $array = [1,2,3,4,5,6]; print_r($a);

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.04320.23
7.0.00.0070.08720.24
5.6.160.0100.08020.39
5.6.150.0030.05318.16
5.6.140.0130.07318.24
5.6.130.0000.05018.29
5.6.120.0200.07021.00
5.6.110.0100.10021.13
5.6.100.0200.06321.00
5.6.90.0070.08720.96
5.6.80.0030.07020.38
5.5.300.0000.04317.95
5.5.290.0030.04017.95
5.5.280.0070.08320.73
5.5.270.0070.06720.84
5.5.260.0070.08320.75
5.5.250.0070.03720.68
5.5.240.0270.07020.23

preferences:
141.1 ms | 1394 KiB | 7 Q