3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); $array = ["test", "test1", "test2"] foreach($array as string $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.0200.07020.30
5.6.160.0100.08720.62
5.6.150.0130.06018.18
5.6.140.0100.08018.18
5.6.130.0070.08018.18
5.6.120.0100.03720.99
5.6.110.0000.08020.96
5.6.100.0100.07020.99
5.6.90.0070.08321.10
5.6.80.0170.07720.50
5.5.300.0030.06018.02
5.5.290.0130.03717.95
5.5.280.0000.07320.96
5.5.270.0070.06020.86
5.5.260.0070.06020.76
5.5.250.0100.07320.76
5.5.240.0170.04720.23

preferences:
141.38 ms | 1394 KiB | 7 Q