3v4l.org

run code in 150+ 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 5.4.0 - 5.6.28, 7.0.0 - 7.1.0
0 - Undefined variable: a 0 - Trying to get property of non-object
Output for hhvm-3.10.0 - 3.12.0
1 - Undefined variable: a 1 - Cannot access property on 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