3v4l.org

run code in 300+ PHP versions simultaneously
<?php for($i = 0; $i <= 10; $++) echo $i . '-'; while($i <= 10) { echo $i; }

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.10.0030.06720.23
7.0.00.0000.04720.18
5.6.160.0070.07320.47
5.6.150.0070.08318.19
5.6.140.0130.08018.17
5.6.130.0070.05018.18
5.6.120.0070.08321.09
5.6.110.0100.08021.12
5.6.100.0100.08321.11
5.6.90.0000.04720.97
5.6.80.0100.08020.35
5.5.300.0130.07017.94
5.5.290.0070.08017.97
5.5.280.0070.08020.87
5.5.270.0000.09320.67
5.5.260.0030.04020.87
5.5.250.0130.07720.59
5.5.240.0100.08020.27

preferences:
151.73 ms | 1394 KiB | 7 Q