3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function directly($array) { $key = 'foo'; return isset($array[$key]); } function byreference(&$array) { $key = 'foo'; return isset($array[$key]); } $array = array( 'foo' => NULL, ); echo directly($array) ? 'truthy' : 'falsey'; echo "\n"; echo byreference($array) ? 'truthy' : 'falsey';
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
falsey falsey