3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array = array('a'=>'lastname', 'b'=>'email', 'c'=>'phone'); echo implode(',', $array); define('DEFAULT_ROLES', implode (',' , $array)); echo '<pre>'; print_r(explode(',' ,DEFAULT_ROLES ));
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
lastname,email,phone<pre>Array ( [0] => lastname [1] => email [2] => phone )