3v4l.org

run code in 300+ PHP versions simultaneously
<?php $possible_comment_module_statuses = [0, '0', FALSE]; foreach ($possible_comment_module_statuses as $comment_module_status) { var_dump($comment_module_status); print "👇\n"; var_dump($comment_module_status === '0'); var_dump($comment_module_status === 0); var_dump($comment_module_status == '0'); var_dump($comment_module_status == 0); var_dump(!$comment_module_status); print "---\n"; }
Output for git.master, git.master_jit, rfc.property-hooks
int(0) 👇 bool(false) bool(true) bool(true) bool(true) bool(true) --- string(1) "0" 👇 bool(true) bool(false) bool(true) bool(true) bool(true) --- bool(false) 👇 bool(false) bool(false) bool(true) bool(true) 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:
148.08 ms | 406 KiB | 5 Q