3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Person { const NAME = 'Joseph'; } function getPerson() { return new Person(); } echo "PHP7: " . PHP_EOL; echo getPerson()::NAME; echo "Backward compat: " . PHP_EOL; echo {getPerson()}::NAME;

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.0070.04320.16
7.0.00.0030.07020.24
5.6.160.0030.09320.47
5.6.150.0030.08718.34
5.6.140.0200.07718.16
5.6.130.0030.04318.15
5.6.120.0070.08021.10
5.6.110.0130.07721.02
5.6.100.0000.04720.98
5.6.90.0000.05020.88
5.6.80.0130.07320.52
5.5.300.0000.08318.07
5.5.290.0130.07718.04
5.5.280.0030.08020.78
5.5.270.0030.09020.80
5.5.260.0100.08320.86
5.5.250.0070.06320.55
5.5.240.0100.08320.16

preferences:
140.1 ms | 1394 KiB | 7 Q