3v4l.org

run code in 300+ PHP versions simultaneously
<?php <?php $a = [1,2,3,4,5]; foreach($a as $k => $v){ $a[$k] = $v * 2; } var_dump($a);

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.1.70.0040.01217.03

preferences:
132.88 ms | 1386 KiB | 7 Q