3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo __DIR__; $t = (object) array('test' => 'blub'); var_dump(isset($t->test), isset($t->fail), empty($t->fail));
Output for 5.3.0 - 7.1.0
/inbool(true) bool(false) bool(true)
Output for 4.3.0 - 5.2.17
Notice: Use of undefined constant __DIR__ - assumed '__DIR__' in /in/6l48Q on line 2 __DIR__bool(true) bool(false) bool(true)