<!DOCTYPE html>
<html>
<head>
<title>AutoKoTH</title>
</head>
<body>
<?php
$answers = json_decode(gzdecode(file_get_contents("http://api.stackexchange.com/2.2/questions/189110/answers?order=desc&sort=activity&site=codegolf&filter=!.mQhx_Oju_oX&pagesize=100")), true);
foreach ($answers["items"] as $item) {
preg_match("/<h1>(.*)<\/h1>|<h2>(.*)<\/h2>/", $item["body"], $headings);
preg_match("/<pre.*><code>([\s\S]*?)<\/code><\/pre>/", $item["body"], $code);
$source .= strip_tags($code[0]) . "\n\n";