3v4l.org

run code in 300+ PHP versions simultaneously
<?php function isset_or(&$check, $alternate = NULL) { return (isset($check)) ? $check : $alternate; } $test = array(); echo '$test is ', $test ? 'truthy' : 'empty', ', with ' . count($test) . ' item(s)', "\r\n"; echo '$test[0][0] is ', isset_or($test[0][0], 'not set'), "\r\n"; echo '$test is ', $test ? 'truthy' : 'empty', ', with ' . count($test) . ' item(s)', "\r\n"; echo "\r\n"; var_export($test);
Output for git.master, git.master_jit, rfc.property-hooks
$test is empty, with 0 item(s) $test[0][0] is not set $test is truthy, with 1 item(s) array ( 0 => array ( 0 => NULL, ), )

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:
57.13 ms | 401 KiB | 8 Q