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; } set_error_handler('eh'); $a->b;
Output for 5.4.0 - 7.1.0
0Undefined variable: a0Trying to get property of non-object
Output for 5.0.4 - 5.3.29
1Undefined variable: a1Trying to get property of non-object
Output for 5.0.0 - 5.0.3
1Undefined variable: a1Trying to get property of non-object
Output for 4.3.0 - 4.4.9
0Undefined variable: a