3v4l.org

run code in 300+ PHP versions simultaneously
<?php <?php for($i=1; $i<=1000; $i++){ if($i%2!=0){ 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.20.0330.08020.33
7.0.10.0100.06020.23
7.0.00.0100.08020.25
5.6.170.0170.05020.50
5.6.160.0070.08720.57
5.6.150.0030.03718.24
5.6.140.0030.07018.17
5.6.130.0070.04718.18
5.6.120.0130.08321.12
5.6.110.0000.09021.00
5.6.100.0030.06721.02
5.6.90.0130.05720.97
5.6.80.0070.04020.43
5.5.310.0330.07020.37
5.5.300.0070.07017.98
5.5.290.0130.04317.98
5.5.280.0030.07720.87
5.5.270.0130.08020.64
5.5.260.0030.05720.87
5.5.250.0070.08020.54
5.5.240.0270.06720.25

preferences:
139.43 ms | 1394 KiB | 7 Q