3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); string[] $array = ["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.04020.23
5.6.160.0000.05720.53
5.6.150.0000.04718.21
5.6.140.0130.06318.07
5.6.130.0000.04318.21
5.6.120.0000.04720.91
5.6.110.0130.06320.99
5.6.100.0100.08320.96
5.6.90.0030.08721.00
5.6.80.0030.08720.28
5.5.300.0030.03718.10
5.5.290.0170.07317.97
5.5.280.0100.06720.77
5.5.270.0070.06320.64
5.5.260.0100.03320.64
5.5.250.0100.04020.61
5.5.240.0170.03020.15

preferences:
138.03 ms | 1394 KiB | 7 Q