$data = [['div' => $div1], ['div' => $div2], ['div' => $div3], ['div' => $div4]];
<div style='width: 50%; float: left; height: 30px; border-radius: 4px; background: #ccc;padding: 5px;'>2<img src='http://qr-team/qrcodes/".$randstr.".png' style='width: 50px;'></div>