Just for a bit of fun in between I read thisĀ post on reddit about how $ actually works in php. It’s written as if it’s some sort of dark magic on how it all works. I got inspired to take it one level further and do a small post on how dark this magic can get:

<?php
$leet = “1337”;
${1337} = $$leet = “L33T”;
${(1&3&3&7).(1|3<<3|7)+(1&3^3&7) .(1|3|3|7)} === ${1337} === $$leet;
?>

Not that it’s got a practical use, but which php programmer doesn’t like to use $1337 legally as a variable :)