It does not work because the second block does not know what $out is. I did not find how I can handle
[insert_php]
/* do something */
$out = smthing;
[/insert_php]
<html>
/*something */
[insert_php]
echo $out;
[/insert_php]
</html>
Edit: How can I write a for loop, it did not work
[insert_php]foreach($elements as $element){ [/insert_php]
<label class="radio-inline"><input type="radio" name="opt" value=[insert_php]echo $element; [/insert_php] > [insert_php] echo $element; [/insert_php]</input> </label>
[insert_php]}[/insert_php]