3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $max = 32767; $n = 20; $step = intval($max/$n); for ($i=0; $i<=$n; $i++) { $val = $i*$step; echo base64_encode(pack('N', $val)) . " $val \n"; }
based on tEDYp
Output for 4.3.0 - 7.1.0
AAAAAA== 0 AAAGZg== 1638 AAAMzA== 3276 AAATMg== 4914 AAAZmA== 6552 AAAf/g== 8190 AAAmZA== 9828 AAAsyg== 11466 AAAzMA== 13104 AAA5lg== 14742 AAA//A== 16380 AABGYg== 18018 AABMyA== 19656 AABTLg== 21294 AABZlA== 22932 AABf+g== 24570 AABmYA== 26208 AABsxg== 27846 AABzLA== 29484 AAB5kg== 31122 AAB/+A== 32760