3v4l.org

run code in 300+ PHP versions simultaneously
<?php <?php $start = microtime(true); for ($i=0; $i<100000; $i++) { $xhr = 'XMLHttpRequest'; if (strtolower($xhr) === 'xmlhttprequest') { } } echo (microtime(true) - $start) . 's';

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.07320.23
7.0.00.0130.03320.23
5.6.160.0070.08020.47
5.6.150.0100.04318.18
5.6.140.0100.07318.29
5.6.130.0100.03318.15
5.6.120.0000.09321.01
5.6.110.0030.08720.99
5.6.100.0000.04321.13
5.6.90.0030.06321.09
5.6.80.0000.06720.46
5.5.300.0070.05017.95
5.5.290.0100.07717.98
5.5.280.0000.09020.84
5.5.270.0100.07320.68
5.5.260.0170.07320.86
5.5.250.0070.04720.68
5.5.240.0070.03720.03

preferences:
137.75 ms | 1394 KiB | 7 Q