3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "Int to bool: \n"; var_dump(10 == true); // TRUE: Here we have an integer compared to a boolean true echo "\nInt to bool strictly: \n"; var_dump(10 === true); // FALSE: Here we have an integer STRICTLY compared to a boolean true echo "\n\nInt to int striclty: \n"; var_dump(10 === 10); // TRUE: Strict comparison of same value
Output for git.master, git.master_jit, rfc.property-hooks
Int to bool: bool(true) Int to bool strictly: bool(false) Int to int striclty: bool(true)

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:
134.25 ms | 405 KiB | 5 Q