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++) { echo base64_encode(pack('N', $i*$step)) . "\n"; }
based on OXEZK
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
AAAAAA== AAAGZg== AAAMzA== AAATMg== AAAZmA== AAAf/g== AAAmZA== AAAsyg== AAAzMA== AAA5lg== AAA//A== AABGYg== AABMyA== AABTLg== AABZlA== AABf+g== AABmYA== AABsxg== AABzLA== AAB5kg== AAB/+A==