3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i = new ArrayIterator(); $i->offsetSet(0, 0); $i->next(); print_r($i; print_r($i->current()); print_r(count($i));

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.0300.07720.12
7.0.10.0000.07320.21
7.0.00.0070.07720.14
5.6.170.0170.04320.50
5.6.160.0100.06720.71
5.6.150.0070.07318.19
5.6.140.0170.07318.18
5.6.130.0030.04318.27
5.6.120.0070.06721.14
5.6.110.0070.08321.01
5.6.100.0000.05321.00
5.6.90.0070.07720.98
5.6.80.0170.06720.37
5.5.310.0270.07320.26
5.5.300.0030.05318.04
5.5.290.0030.04017.96
5.5.280.0070.04020.77
5.5.270.0070.07320.97
5.5.260.0100.08020.86
5.5.250.0070.03720.68
5.5.240.0170.04020.35

preferences:
143.29 ms | 1394 KiB | 7 Q