3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(1,2,3); $b = &$a; foreach($ as $v) { echo "$v\n"; unset($a[1]); }

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.0200.04320.08
7.0.10.0030.06720.30
7.0.00.0070.08320.13
5.6.170.0330.07720.52
5.6.160.0070.07720.57
5.6.150.0000.04318.19
5.6.140.0130.07318.18
5.6.130.0100.05718.27
5.6.120.0130.06320.98
5.6.110.0000.04321.02
5.6.100.0130.08021.00
5.6.90.0130.03321.01
5.6.80.0100.07320.50
5.5.310.0170.05320.41
5.5.300.0130.06317.99
5.5.290.0070.07318.07
5.5.280.0100.06720.76
5.5.270.0070.07320.79
5.5.260.0100.07720.86
5.5.250.0130.07320.68
5.5.240.0230.04320.18

preferences:
143.34 ms | 1394 KiB | 7 Q