3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (is_float(27.25)) { echo "is float\n"; } else { echo "is not float\n"; } var_dump(is_float('abc')); var_dump(is_float(23)); var_dump(is_float(23.5)); var_dump(is_float(1e7)); //Scientific Notation var_dump(is_float(true)); ?>
Output for git.master, git.master_jit, rfc.property-hooks
is float bool(false) bool(false) bool(true) bool(true) bool(false)

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