3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL & ~E_NOTICE); $foo = array("bar" => "baz", "null" => "void"); print_r($foo[bar]); //this works, as it will assume $foo["bar"] print_r($foo[null]); //null is a defined constant, so it will look for a value with an empty key which is not defined

preferences:
29.22 ms | 405 KiB | 5 Q