3v4l.org

run code in 300+ PHP versions simultaneously
<?php // inspired by discussion at: http://stackoverflow.com/questions/11158772/assigning-null-to-a-variable-in-php-what-does-that-do $a = 1; $a = null; echo isset($a) ? 'true' : 'false', "\n"; // false var_dump($a); // 'NULL' -- but no error notice - bug ? type changed to NULL unset($a); // now variable undefined echo isset($a) ? 'true' : 'false', "\n"; // false var_dump($a); // error notice and value NULL
Output for git.master, git.master_jit, rfc.property-hooks
false NULL false Warning: Undefined variable $a in /in/4oZkL on line 9 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:
55.74 ms | 401 KiB | 8 Q