3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array = [null => 42, false => 43]; var_dump(array_key_exists(null, $array)); // true var_dump(array_key_exists('', $array)); // true var_dump(array_key_exists(false, $array)); // true var_dump(array_key_exists(0, $array)); // true var_dump(array_key_exists(0.0, $array)); // true print count($array). " elements in the array\n";
Output for git.master_jit, git.master
bool(true) bool(true) bool(true) bool(true) bool(true) 2 elements in the array

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:
37.81 ms | 853 KiB | 4 Q