3v4l.org

run code in 300+ PHP versions simultaneously
<?php $n = 0b1111111111111111111111111111111111111111111111111111111111111111; var_dump($n); var_dump(sprintf("%.16E", $n)); var_dump(sprintf("%.17E", $n)); var_dump(sprintf("%.16G", $n)); var_dump(sprintf("%.17G", $n)); var_dump(sprintf("%.18G", $n));
Output for git.master, git.master_jit, rfc.property-hooks
float(1.844674407370955E+19) string(22) "1.8446744073709550E+19" string(23) "1.84467440737095496E+19" string(21) "1.844674407370955E+19" string(21) "1.844674407370955E+19" string(23) "1.84467440737095496E+19"

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:
44.32 ms | 401 KiB | 8 Q