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.0130.08020.18
7.0.00.0000.05020.34
5.6.160.0100.03720.54
5.6.150.0070.08318.14
5.6.140.0070.08018.19
5.6.130.0030.08318.19
5.6.120.0200.06021.10
5.6.110.0070.08320.96
5.6.100.0000.04720.98
5.6.90.0030.04721.08
5.6.80.0170.05020.29
5.5.300.0070.07017.97
5.5.290.0100.08017.92
5.5.280.0130.07020.96
5.5.270.0070.07720.84
5.5.260.0070.07020.64
5.5.250.0170.06020.62
5.5.240.0170.07720.04

preferences:
142.13 ms | 1394 KiB | 7 Q