3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php define('DIR_MODELS','test'); define('DIRNAME_AUTHENTICATION','derp'); define('DIRNAME_AUTHENITCATION','derp'); define('DIRNAME_AUTHENITCATION_TYPES','derptest'); define('DIRNAME_AUTHENTICATION_TYPES','derptest'); $file = 'test.php'; $atHandle = 'testhandle'; echo (implode('/',array(DIR_MODELS,DIRNAME_AUTHENTICATION,DIRNAME_AUTHENTICATION_TYPES,$atHandle,$_file)) == DIR_MODELS . '/' . DIRNAME_AUTHENITCATION . '/' . DIRNAME_AUTHENITCATION_TYPES . '/' . $atHandle . '/' . $_file ? 'WORKED':'failed');
Output for 5.0.4 - 7.1.0
Notice: Undefined variable: _file in /in/Qv5HN on line 10 Notice: Undefined variable: _file in /in/Qv5HN on line 10 WORKED
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: _file in /in/Qv5HN on line 10 Notice: Undefined variable: _file in /in/Qv5HN on line 10 WORKED