3v4l.org

run code in 300+ PHP versions simultaneously
<?php $y = 0; for ($i = 0; $i < 100; ++$i) { ($i & 1) or (continue); ++$y } echo $y;

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.00.0170.09720.09
5.6.160.0070.05320.39
5.6.150.0030.08718.23
5.6.140.0070.05718.21
5.6.130.0130.08318.21
5.6.120.0170.08021.12
5.6.110.0030.08020.96
5.6.100.0100.08021.14
5.6.90.0100.07721.00
5.6.80.0030.04320.50
5.5.300.0130.03018.01
5.5.290.0070.07017.91
5.5.280.0030.06320.75
5.5.270.0070.08320.86
5.5.260.0030.04720.76
5.5.250.0130.06720.49
5.5.240.4130.03720.14

preferences:
140.23 ms | 1394 KiB | 7 Q