unserialize.php

<?php
error_reporting(E_ALL);

if(!empty($_GET['decode'])) {
	$decode = unserialize(stripslashes($_GET['decode']));
}

?>
<html>
<head>
<style>
pre {
	font-size: small;
}
.form {
	vertical-align: top;
	font-size: small;
}
.form textarea {
	float: left;
}
</style>
</head>
<body>
	<h3>Decode serialized PHP array(s)</h3>
	<p>Note: Remember to strip any extra spaces or newlines in case of decode error.</p>
	<form>
	<div class="form">
		<textarea id="decodetext" name="decode" rows="10" cols="80"><?php if(!empty($_GET['decode'])) { echo stripslashes($_GET['decode']); } ?></textarea>
		<p>
			<label for="color">Color output</label>
			<input type="checkbox" name="color" value="yes" <?php echo (empty($_GET['color']))?'':'checked ' ?>/>
		</p>
		<input type="submit" value="Decode!">
		<input type="button" value="Clear" onClick="document.getElementById('decodetext').innerHTML = ''">
	</div>
	</form>
	<div style="clear:both;"></div>
	<?php if(!empty($decode)) { ?>
		<p>
			<b>Decoded result:</b>
			<pre><?php (empty($_GET['color']))?print_r($decode):var_dump($decode) ?></pre>
		</p>
	<?php } ?>
</body>
</html>