Przykład z strony tego projektu:
Kod wejściowy
<?for ($i=0;$i<strlen($str);$i++) {if ($new_line_counter==0) {if (($i+1)<sizeof($a)) {if ($a[$i+1]==\"?\" AND $a[$i]==\"<\") {out($outstr);out(\"<?php\");$indent++;$new_line_counter++;if (($i+4)<sizeof($a)) {if ($a[$i+2]==\"p\" AND $a[$i+3]==\"h\" AND $a[$i+4]==\"p\") $i=$i+3;}$i++;continue;}else {$outstr.=$a[$i];continue;}}}};?>
Kod wyjściowy
<?php if ($new_line_counter == 0) { if ($a[$i+1] == \"?\" AND $a[$i] == \"<\") { out($outstr); out(\"<?php\"); $indent++; $new_line_counter++; if ($a[$i+2] == \"p\" AND $a[$i+3] == \"h\" AND $a[$i+4] == \"p\") $i = $i+3; } $i++; continue; } else { $outstr .= $a[$i]; continue; } } } }; ?>