3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(1, 2, 3, 4); print_r($a); foreach($a as &$b) { print_r(&$b); } print_r($a); foreach($a as $b) { } 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.20.0270.05020.30
7.0.10.0130.07720.19
7.0.00.0070.05020.15
5.6.170.0170.09020.45
5.6.160.0070.06020.54
5.6.150.0030.08318.20
5.6.140.0100.08018.21
5.6.130.0070.04018.18
5.6.120.0070.08021.05
5.6.110.0170.07321.11
5.6.100.0130.08021.11
5.6.90.0100.05721.01
5.6.80.0070.06320.38
5.5.310.0170.03720.50
5.5.300.0030.05017.88
5.5.290.0070.08717.98
5.5.280.0030.08720.87
5.5.270.0130.04720.73
5.5.260.0170.07720.72
5.5.250.0200.07320.66
5.5.240.0200.07720.16

preferences:
140.52 ms | 1398 KiB | 7 Q