3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "array ( 2 => 'authenticated user, 6 => employee',)"; eval('$foo = $string;'); print_r($foo); echo var_export(array(2 => 'authenticated user', 6 => 'employee',), TRUE);

preferences:
45.98 ms | 402 KiB | 5 Q