3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php ini_set('display_errors', 'off'); error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED); $x = new stdClass(); var_dump($x->foo->bar);
Output for 4.3.0, 5.4.38 - 7.1.0
NULL
Output for 5.3.0 - 5.4.37
Warning: ini_set() has been disabled for security reasons in /in/B6ffd on line 2 NULL
Output for 5.0.0 - 5.2.17
Warning: ini_set() has been disabled for security reasons in /in/B6ffd on line 2 Notice: Use of undefined constant E_DEPRECATED - assumed 'E_DEPRECATED' in /in/B6ffd on line 3 NULL
Output for 4.3.5 - 4.4.9
Warning: ini_set() has been disabled for security reasons in /in/B6ffd on line 2 Notice: Use of undefined constant E_STRICT - assumed 'E_STRICT' in /in/B6ffd on line 3 Notice: Use of undefined constant E_DEPRECATED - assumed 'E_DEPRECATED' in /in/B6ffd on line 3 NULL
Output for 4.3.1 - 4.3.4
Warning: ini_set,pcntl_fork() has been disabled for security reasons in /in/B6ffd on line 2 Notice: Use of undefined constant E_STRICT - assumed 'E_STRICT' in /in/B6ffd on line 3 Notice: Use of undefined constant E_DEPRECATED - assumed 'E_DEPRECATED' in /in/B6ffd on line 3 NULL