3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php define("DEFINE",1); define("HELLO", 'this_exists'); define("this_doesnt_exist", "HELLO"); $var = 12349394; $vvar = "this_doesnt_exist"; var_dump( defined("DEFINE"), defined(DEFINE), defined($var), defined("Hi"), $var, DEFINE, defined("HELLO"), defined(this_doesnt_exist), defined($vvar) );
Output for 4.3.5 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
bool(true) bool(false) bool(false) bool(false) int(12349394) int(1) bool(true) bool(true) bool(true)
Output for 4.3.0 - 4.3.4
int(1) int(0) int(0) int(0) int(12349394) int(1) int(1) int(1) int(1)