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.0130.08320.23
5.6.160.0070.04320.44
5.6.150.0070.05318.15
5.6.140.0170.07018.23
5.6.130.0130.07318.11
5.6.120.0100.07721.06
5.6.110.0100.08021.02
5.6.100.0100.06720.95
5.6.90.0070.03720.98
5.6.80.0170.07320.36
5.5.300.0070.08318.03
5.5.290.0030.07018.03
5.5.280.0000.09720.77
5.5.270.0070.04720.87
5.5.260.0030.04320.97
5.5.250.0100.08020.71
5.5.240.3930.03320.28

preferences:
140.49 ms | 1394 KiB | 7 Q