3v4l.org

run code in 300+ PHP versions simultaneously
<?php function true_or_false($bool) { return $bool ? 'true' : 'false'; } function do_test($expression) { echo "\t$expression : " . true_or_false(eval("return $expression;")) . "\n"; } function test($str) { echo "Testing $str\n"; do_test("$str == 0"); do_test("$str === 0"); } test('""'); test('null'); test('array()');
Output for git.master, git.master_jit, rfc.property-hooks
Testing "" "" == 0 : false "" === 0 : false Testing null null == 0 : true null === 0 : false Testing array() array() == 0 : false array() === 0 : 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.92 ms | 401 KiB | 8 Q