3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php foreach (range(1,1000) as $int) { $trimmed = base64_decode(trim('=', base64_encode($int))); $untrimmed = base64_decode(base64_encode($int)); echo "{$int}: TRIMMED:" . ($trimmed == $int ? 'Pass' : 'Fail') . " ({$trimmed}) " . " UNTRIMMED: " . ($untrimmed == $int ? 'Pass' : 'Fail') . "({$untrimmed})" . "\n"; }
based on WrKXU

Abusive script

This script was stopped while abusing our resources