3v4l.org

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