3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $string = "array ( 2 => 'authenticated user, 6 => employee',)"; eval('$foo = $string;'); print_r($foo); $string = var_export(array(2 => 'authenticated user', 6 => 'employee',), TRUE); eval('$bar = $string;'); print_r($bar);
based on psRNE
Output for 4.3.0 - 7.1.0
array ( 2 => 'authenticated user, 6 => employee',)array ( 2 => 'authenticated user', 6 => 'employee', )