3v4l.org

run code in 500+ 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

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
1544.12 ms | 492 KiB | 22 Q