3v4l.org

run code in 300+ PHP versions simultaneously
<?php $msb = -1 * pow(2,63); for ($i=62; $i >= 0; $i--) { $result = pow(2,$i); $msb += $result; echo $msb,'\n'; } echo '<p>***',$msb,'****</p>';
Output for git.master, git.master_jit, rfc.property-hooks
-4.6116860184274E+18\n-2.3058430092137E+18\n-1.1529215046068E+18\n-5.7646075230342E+17\n-2.8823037615171E+17\n-1.4411518807586E+17\n-7.2057594037928E+16\n-3.6028797018964E+16\n-1.8014398509482E+16\n-9.007199254741E+15\n-4.5035996273705E+15\n-2.2517998136852E+15\n-1.1258999068426E+15\n-5.6294995342131E+14\n-2.8147497671066E+14\n-1.4073748835533E+14\n-70368744177664\n-35184372088832\n-17592186044416\n-8796093022208\n-4398046511104\n-2199023255552\n-1099511627776\n-549755813888\n-274877906944\n-137438953472\n-68719476736\n-34359738368\n-17179869184\n-8589934592\n-4294967296\n-2147483648\n-1073741824\n-536870912\n-268435456\n-134217728\n-67108864\n-33554432\n-16777216\n-8388608\n-4194304\n-2097152\n-1048576\n-524288\n-262144\n-131072\n-65536\n-32768\n-16384\n-8192\n-4096\n-2048\n-1024\n-512\n-256\n-128\n-64\n-32\n-16\n-8\n-4\n-2\n-1\n<p>***-1****</p>

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:
36.88 ms | 403 KiB | 8 Q