3v4l.org

run code in 300+ PHP versions simultaneously
<?php // $x = 'foo'; # notice this doesn't actually exist $y = null; # exists but null $z = 'foo'; # exists and not null var_dump(array_key_exists('x', compact('x'))); // false var_dump(array_key_exists('y', compact('y'))); // true var_dump(array_key_exists('z', compact('z'))); // true
Output for git.master, git.master_jit, rfc.property-hooks
Warning: compact(): Undefined variable $x in /in/TLdZI on line 7 bool(false) bool(true) bool(true)

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:
130.89 ms | 405 KiB | 5 Q