3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); $array: string = ["test", "test1", "test2"] foreach($array as $test) { echo $test; }

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.08720.07
5.6.160.0070.08020.55
5.6.150.0100.08018.19
5.6.140.0130.05718.13
5.6.130.0100.04018.11
5.6.120.0100.06020.96
5.6.110.0070.05021.05
5.6.100.0170.05020.88
5.6.90.0030.04721.10
5.6.80.0070.08320.48
5.5.300.0070.08017.98
5.5.290.0030.04318.08
5.5.280.0000.05720.79
5.5.270.0070.08320.79
5.5.260.0100.06720.72
5.5.250.0070.05720.70
5.5.240.0270.06720.16

preferences:
148.68 ms | 1398 KiB | 7 Q