3v4l.org

run code in 300+ PHP versions simultaneously
<?php $y = 0; for ($i = 0; $i < 100; ++$i) { ($i % 1) or ++y; ++$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.05720.18
5.6.160.0100.06020.55
5.6.150.0030.06318.25
5.6.140.0030.05718.17
5.6.130.0030.07018.23
5.6.120.0070.03720.89
5.6.110.0170.06720.89
5.6.100.0130.07320.99
5.6.90.0070.08321.03
5.6.80.0030.08020.50
5.5.300.0030.04017.97
5.5.290.0070.07018.05
5.5.280.0100.06320.84
5.5.270.0100.06320.83
5.5.260.0030.04720.86
5.5.250.0030.04020.77
5.5.240.4030.03020.15

preferences:
248.5 ms | 1394 KiB | 8 Q