3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fooBar = [0 => 'foo', 1 => 'bar']; var_dump('loose', in_array(true, $fooBar), in_array(false, $fooBar), in_array(0, $fooBar), in_array(1, $fooBar)); var_dump('strict', in_array(true, $fooBar, true), in_array(false, $fooBar, true), in_array(0, $fooBar, true), in_array(1, $fooBar, true));
Output for git.master_jit, git.master
string(5) "loose" bool(true) bool(false) bool(false) bool(false) string(6) "strict" bool(false) bool(false) bool(false) 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:
29.62 ms | 405 KiB | 5 Q