3v4l.org

run code in 300+ PHP versions simultaneously
<?php $MAX_POWER_BITMASK = 32; $candidates = array_map( function ($power) { return pow(2, $power); }, range(0, $MAX_POWER_BITMASK) ); var_dump($candidates);
Output for git.master_jit, git.master
array(33) { [0]=> int(1) [1]=> int(2) [2]=> int(4) [3]=> int(8) [4]=> int(16) [5]=> int(32) [6]=> int(64) [7]=> int(128) [8]=> int(256) [9]=> int(512) [10]=> int(1024) [11]=> int(2048) [12]=> int(4096) [13]=> int(8192) [14]=> int(16384) [15]=> int(32768) [16]=> int(65536) [17]=> int(131072) [18]=> int(262144) [19]=> int(524288) [20]=> int(1048576) [21]=> int(2097152) [22]=> int(4194304) [23]=> int(8388608) [24]=> int(16777216) [25]=> int(33554432) [26]=> int(67108864) [27]=> int(134217728) [28]=> int(268435456) [29]=> int(536870912) [30]=> int(1073741824) [31]=> int(2147483648) [32]=> int(4294967296) }

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:
32.66 ms | 407 KiB | 5 Q