3v4l.org

run code in 300+ PHP versions simultaneously
<?php $liczba=0; $tab =[5,6,7,8,9,10]; foreach($tab as &element){ if($element>$liczba) echo $element; } ?>

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.03020.16
5.6.160.0030.07020.45
5.6.150.0100.03318.19
5.6.140.0000.04318.11
5.6.130.0070.08018.15
5.6.120.0030.09021.12
5.6.110.0100.07021.05
5.6.100.0070.05020.89
5.6.90.0030.04320.98
5.6.80.0030.05720.37
5.5.300.0030.08317.95
5.5.290.0130.07718.09
5.5.280.0000.07720.80
5.5.270.0130.07020.66
5.5.260.0070.08720.79
5.5.250.0100.07020.45
5.5.240.3670.04320.27

preferences:
141.59 ms | 1394 KiB | 7 Q