3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class test { public function __construct() { $this->test = 'meow'; } } function error_handler() { $test = new test(); return true; } set_error_handler("error_handler"); // test one class a {} $a = new a; $a->undefined .= 'test'; echo isset($a->undefined) ? 'true' : 'false'; echo "\n"; // test two $b .= 'test'; echo isset($b) ? 'true' : 'false'; echo "\n";
Output for 5.4.0 - 5.4.45, 5.5.19 - 5.5.38, 5.6.3 - 5.6.28, hhvm-3.10.0 - 3.13.2, 7.0.0 - 7.1.0
true true
Output for 5.5.0 - 5.5.18, 5.6.0 - 5.6.2
false true