3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo '---- INTMAX vs INTMAX+1'. \PHP_EOL; var_dump(\PHP_INT_MAX); var_dump(\PHP_INT_MAX+1); echo '---- INTMAX to float and back'. \PHP_EOL; var_dump(\intval((float)\PHP_INT_MAX)); var_dump((int)((float)\PHP_INT_MAX)); echo '---- INTMAX+1 to float and back'. \PHP_EOL; var_dump(\intval(\PHP_INT_MAX+1)); var_dump((int)(\PHP_INT_MAX+1)); var_dump(\PHP_INT_MIN); echo '---- ...rendezvous point exists...'. \PHP_EOL; var_dump(\intval(18446744073709551615));
Output for git.master, git.master_jit, rfc.property-hooks
---- INTMAX vs INTMAX+1 int(9223372036854775807) float(9.223372036854776E+18) ---- INTMAX to float and back int(-9223372036854775808) int(-9223372036854775808) ---- INTMAX+1 to float and back int(-9223372036854775808) int(-9223372036854775808) int(-9223372036854775808) ---- ...rendezvous point exists... int(0)

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:
63.57 ms | 402 KiB | 8 Q