3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = ['a' => 1, 'b' => null]; echo "array_key_exists:\n"; echo array_key_exists('a', $test) ? "a: found\n" : "a: not found\n"; echo array_key_exists('b', $test) ? "b: found\n" : "b: not found\n"; echo "\n\nisset:\n"; echo isset($test['a']) ? "a: found\n" : "a: not found\n"; echo isset($test['b']) ? "b: found\n" : "b: not found\n"; echo "\n\nempty:\n"; echo empty($test['a']) ? "a: found\n" : "a: not found\n"; echo empty($test['b']) ? "b: found\n" : "b: not found\n";
Output for git.master, git.master_jit, rfc.property-hooks
array_key_exists: a: found b: found isset: a: found b: not found empty: a: not found b: found

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