<?php
echo "<script>mycount =";
$a = array(10,'+',10, '*', 2, '+', 10); for($i = 0; $i < count($a);$i++): echo $a[$i];
endfor;
echo '; alert(mycount);</script>';
PD9waHAKZWNobyAiPHNjcmlwdD5teWNvdW50ID0iOwokYSA9IGFycmF5KDEwLCcrJywxMCwgJyonLCAyLCAnKycsIDEwKTsKZm9yKCRpID0gMDsgJGkgPCBjb3VudCgkYSk7JGkrKyk6CmVjaG8gJGFbJGldOwplbmRmb3I7CmVjaG8gJzsgYWxlcnQobXljb3VudCk7PC9zY3JpcHQ+Jzs=