3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); function foo(string $bar = false) { // } foo();

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.0000.08320.10
7.0.00.0030.04720.33
5.6.160.0100.08720.71
5.6.150.0070.07318.14
5.6.140.0100.04718.16
5.6.130.0000.08018.28
5.6.120.0030.08721.14
5.6.110.0070.08321.00
5.6.100.0100.05321.00
5.6.90.0070.04720.99
5.6.80.0070.03320.41
5.5.300.0070.06017.99
5.5.290.0070.05318.03
5.5.280.0070.04020.69
5.5.270.0130.08020.84
5.5.260.0030.07720.87
5.5.250.0070.06720.51
5.5.240.0100.08020.19

preferences:
141.24 ms | 1386 KiB | 7 Q