3v4l.org

run code in 300+ PHP versions simultaneously
<?php $resultset=[ ['avatar'=>1,'username'=>'A'], ['avatar'=>2,'username'=>'B'], ['avatar'=>3,'username'=>'C'], ['avatar'=>4,'username'=>'D'], ['avatar'=>5,'username'=>'E'], ['avatar'=>6,'username'=>'F'], ['avatar'=>7,'username'=>'G'] ]; if(sizeof($resultset)){ // your num rows $counter=0; foreach($resultset as $row){ // you while loop if($counter%6==0){ if($counter){ echo "</div>\n"; } echo "<div class='ui stackable six cards'>\n"; // start new group } echo "\t<div class='ui card small'>\n"; echo "\t\t<div class='ui card small'><div class='image'><img src='".$row["avatar"]."'></div>\n"; echo "\t\t<div class='content'><a class='header'>Dias".$row["username"]."</a></div></div>\n"; echo "\t</div>\n"; ++$counter; } echo "</div>\n"; }

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)
8.5.00.0120.00820.07
8.4.150.0030.00014.05
8.4.140.0170.00617.81
8.4.130.0130.00717.58
8.4.120.0090.01024.04
8.4.110.0110.00921.66
8.4.100.0050.00518.67
8.4.90.0110.00618.79
8.4.80.0060.00318.75
8.4.70.0030.00517.95
8.4.60.0090.01119.04
8.4.50.0130.00618.53
8.4.40.0030.00717.78
8.4.30.0070.01417.54
8.4.20.0140.00319.48
8.4.10.0090.00019.51
8.3.280.0100.00918.45
8.3.270.0080.01216.44
8.3.260.0070.00217.00
8.3.250.0130.00519.03
8.3.240.0110.00916.97
8.3.230.0100.00816.45
8.3.220.0060.00518.82
8.3.210.0100.00416.71
8.3.200.0070.00216.62
8.3.190.0130.00617.17
8.3.180.0120.00716.98
8.3.170.0100.00722.63
8.3.160.0110.00716.98
8.3.150.0070.01117.24
8.3.140.0190.00016.71
8.3.130.0000.01016.46
8.3.120.0060.00320.53
8.3.110.0040.00420.94
8.3.100.0030.00816.36
8.3.90.0000.00726.77
8.3.80.0060.00317.97
8.3.70.0160.00316.50
8.3.60.0030.01218.18
8.3.50.0080.00818.34
8.3.40.0030.01218.81
8.3.30.0070.00718.67
8.3.20.0070.00020.46
8.3.10.0050.00321.90
8.3.00.0000.00819.15
8.2.290.0120.00720.63
8.2.280.0130.00718.60
8.2.270.0110.00717.43
8.2.260.0070.00717.40
8.2.250.0040.00416.71
8.2.240.0070.00316.95
8.2.230.0030.00622.58
8.2.220.0080.00024.06
8.2.210.0080.00026.77
8.2.200.0060.00316.50
8.2.190.0100.01016.63
8.2.180.0160.00418.66
8.2.170.0070.00718.86
8.2.160.0100.00722.96
8.2.150.0000.00725.66
8.2.140.0040.00424.66
8.2.130.0050.00320.90
8.2.120.0040.00426.35
8.2.110.0070.00319.21
8.2.100.0080.00617.91
8.2.90.0000.00819.19
8.2.80.0000.01317.97
8.2.70.0030.00617.63
8.2.60.0000.00918.03
8.2.50.0050.00518.07
8.2.40.0040.00418.16
8.2.30.0040.00418.18
8.2.20.0050.00218.03
8.2.10.0000.00718.04
8.2.00.0070.00018.12
8.1.330.0130.00622.08
8.1.320.0130.00716.11
8.1.310.0030.00518.43
8.1.300.0090.00618.53
8.1.290.0090.00030.84
8.1.280.0000.01625.92
8.1.270.0000.00820.20
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0060.00320.94
8.1.230.0110.00022.16
8.1.220.0050.00317.79
8.1.210.0050.00318.77
8.1.200.0000.01017.36
8.1.190.0000.00717.23
8.1.180.0030.00518.10
8.1.170.0030.00618.57
8.1.160.0080.00018.80
8.1.150.0000.00820.13
8.1.140.0040.00417.74
8.1.130.0070.00420.66
8.1.120.0040.00417.46
8.1.110.0080.00017.39
8.1.100.0080.00017.46
8.1.90.0070.00017.45
8.1.80.0000.00817.36
8.1.70.0060.00317.48
8.1.60.0000.00817.54
8.1.50.0030.00517.48
8.1.40.0070.00017.53
8.1.30.0090.00017.68
8.1.20.0000.00717.71
8.1.10.0040.00717.64
8.1.00.0000.00817.55
8.0.300.0060.00318.77
8.0.290.0030.00516.58
8.0.280.0030.00318.43
8.0.270.0000.00717.13
8.0.260.0000.00716.82
8.0.250.0000.00616.98
8.0.240.0040.00416.93
8.0.230.0070.00016.90
8.0.220.0000.00716.82
8.0.210.0000.00716.86
8.0.200.0030.00316.94
8.0.190.0050.00316.95
8.0.180.0000.00716.89
8.0.170.0000.00816.91
8.0.160.0000.00716.90
8.0.150.0030.00716.87
8.0.140.0000.00716.89
8.0.130.0030.00313.27
8.0.120.0050.00216.88
8.0.110.0070.00016.71
8.0.100.0000.00717.00
8.0.90.0040.00416.78
8.0.80.0030.01416.86
8.0.70.0000.00716.77
8.0.60.0040.00416.74
8.0.50.0040.00416.87
8.0.30.0070.01117.12
8.0.20.0120.00917.40
8.0.10.0000.00816.91
8.0.00.0120.00616.69
7.4.330.0000.00415.55
7.4.320.0060.00016.45
7.4.300.0030.00316.52
7.4.290.0030.00316.60
7.4.280.0090.00016.59
7.4.270.0080.00016.66
7.4.260.0040.00416.45
7.4.250.0030.00316.59
7.4.240.0070.00016.61
7.4.230.0000.00716.59
7.4.220.0030.00316.50
7.4.210.0030.01216.54
7.4.200.0000.00716.48
7.4.160.0150.00416.45
7.4.150.0070.01217.40
7.4.140.0080.01017.86
7.4.130.0070.01016.40
7.4.120.0080.01216.50
7.4.110.0030.01416.41
7.4.100.0100.00716.50
7.4.90.0040.01416.41
7.4.80.0100.01019.39
7.4.70.0120.00616.51
7.4.60.0060.01516.52
7.4.50.0060.00616.55
7.4.40.0120.00316.65
7.4.00.0070.01015.04
7.3.330.0050.00013.17
7.3.320.0050.00013.22
7.3.310.0070.00016.17
7.3.300.0000.00716.34
7.3.290.0070.00016.25
7.3.280.0100.01116.29
7.3.270.0090.00917.40
7.3.260.0120.00516.41
7.3.250.0160.00816.41
7.3.240.0140.00816.31
7.3.230.0170.00016.69
7.3.210.0100.00616.60
7.3.200.0100.00716.40
7.3.190.0060.01016.55
7.3.180.0090.00916.32
7.3.170.0070.01416.49
7.3.160.0080.00816.32
7.2.330.0070.01116.74
7.2.320.0000.01716.71
7.2.310.0030.01416.46
7.2.300.0070.01116.84
7.2.290.0110.00616.75
7.2.60.0030.00817.06
7.2.10.0380.01318.00
7.2.00.0430.01118.29
7.1.200.0040.00815.71
7.1.130.0410.01217.11
7.1.120.0380.01417.07
7.1.110.0350.01216.42
7.1.100.0400.01116.40
7.1.90.0460.01016.12
7.1.80.0440.01216.04
7.1.70.0370.01115.18
7.1.60.0490.00333.30
7.1.50.0370.02632.94
7.1.40.0460.00732.75
7.1.30.0650.01032.68
7.1.20.0450.01632.70
7.1.10.0320.00914.71
7.1.00.0470.00314.77

preferences:
32.24 ms | 403 KiB | 5 Q