3v4l.org

run code in 300+ PHP versions simultaneously
<?php <?php define('MYCONSTANT', 0); if (empty(MYCONSTANT)) { echo "Hello"; } else { echo "Goodbye"; } ?>

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.0100.08020.20
5.6.160.0070.06020.43
5.6.150.0100.04018.16
5.6.140.0070.08018.20
5.6.130.0100.07718.14
5.6.120.0070.04721.09
5.6.110.0130.07021.13
5.6.100.0030.06720.97
5.6.90.0170.06320.97
5.6.80.0030.04020.43
5.5.300.0100.07317.95
5.5.290.0070.04718.08
5.5.280.0070.05320.98
5.5.270.0030.07020.79
5.5.260.0000.06020.96
5.5.250.0070.04320.71
5.5.240.0100.04320.24

preferences:
142.7 ms | 1398 KiB | 7 Q