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 4.3.0 - 7.1.0
WORKED