3v4l.org

run code in 300+ PHP versions simultaneously
<?php <?php $ar = rand(1,20); $a1 = shufle($ar); for($i=0; $i<=count($a1); $i++) { if($a1[$i]<=10) { echo 'pierwsza dziesiatka'.$a1[$i].'<br/>'; } if($a1[$i]>10) { echo 'druga dziesiatka'.$a1[$i].'<br/>'; } }

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.20.0370.06720.10
7.0.10.0070.05320.33
7.0.00.0070.03720.05
5.6.170.0200.04320.53
5.6.160.0130.07720.52
5.6.150.0170.07718.18
5.6.140.0030.08318.17
5.6.130.0030.04018.18
5.6.120.0030.05320.99
5.6.110.0000.04320.98
5.6.100.0100.05721.00
5.6.90.0070.06020.96
5.6.80.0030.08020.35
5.5.310.0200.04020.36
5.5.300.0030.08018.07
5.5.290.0100.08017.94
5.5.280.0100.07720.97
5.5.270.0130.07020.83
5.5.260.0130.08020.76
5.5.250.0100.06720.57
5.5.240.0200.07020.02

preferences:
137.91 ms | 1394 KiB | 7 Q