3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class asdf { const DUPA = array('hehe' => 'asdf'); public function foo() { isset(self::DUPA['asdf']) ? $m = 'tak' : $m = "nie"; echo $m; } } (new asdf)->foo();
based on 7p62q
Output for 7.0.0 - 7.3.0beta1
nie
Output for 5.6.0 - 5.6.26
Fatal error: Cannot use isset() on the result of an expression (you can use "null !== expression" instead) in /in/YQZOF on line 8
Process exited with code 255.