3v4l.org

run code in 300+ PHP versions simultaneously
<?php $max = 32767; $n = 20; $step = intval($max/$n); for ($i=0; $i<=$n; $i++) { $val = $i*$step; $uint16 = base64_encode(pack('S', $val)); $uint32 = base64_encode(pack('N', $val)); $str = base64_encode(strval($val)); echo "$uint16 $uint32 $str $val \n";}
Output for git.master, git.master_jit, rfc.property-hooks
AAA= AAAAAA== MA== 0 ZgY= AAAGZg== MTYzOA== 1638 zAw= AAAMzA== MzI3Ng== 3276 MhM= AAATMg== NDkxNA== 4914 mBk= AAAZmA== NjU1Mg== 6552 /h8= AAAf/g== ODE5MA== 8190 ZCY= AAAmZA== OTgyOA== 9828 yiw= AAAsyg== MTE0NjY= 11466 MDM= AAAzMA== MTMxMDQ= 13104 ljk= AAA5lg== MTQ3NDI= 14742 /D8= AAA//A== MTYzODA= 16380 YkY= AABGYg== MTgwMTg= 18018 yEw= AABMyA== MTk2NTY= 19656 LlM= AABTLg== MjEyOTQ= 21294 lFk= AABZlA== MjI5MzI= 22932 +l8= AABf+g== MjQ1NzA= 24570 YGY= AABmYA== MjYyMDg= 26208 xmw= AABsxg== Mjc4NDY= 27846 LHM= AABzLA== Mjk0ODQ= 29484 knk= AAB5kg== MzExMjI= 31122 +H8= AAB/+A== MzI3NjA= 32760

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
58.82 ms | 402 KiB | 8 Q