3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function eh($type, $message, $file, $line, $context) { echo (int) isset($context['GLOBALS']), ' - ', $message, "\n"; } set_error_handler('eh'); $a->b;
Output for 7.2.0
0 - Undefined variable: a 0 - Trying to get property 'b' of non-object
Output for 5.4.0 - 7.1.10
0 - Undefined variable: a 0 - Trying to get property of non-object
Output for 5.0.4 - 5.3.29
1 - Undefined variable: a 1 - Trying to get property of non-object
Output for 5.0.0 - 5.0.3
1 - Undefined variable: a 1 - Trying to get property of non-object
Output for 4.3.0 - 4.4.9
0 - Undefined variable: a