3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $string = <<<STRING array ( 2 => 'authenticated user', 3 => 'administrator', 6 => 'employee', ) STRING; $string2 = var_export(array(2 => 'authenticated user', 3 => 'administrator', 6 => 'employee'), TRUE); eval('$foo = $string;'); var_dump($foo); var_dump($foo === $string2);
based on nKbF3
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
string(81) "array ( 2 => 'authenticated user', 3 => 'administrator', 6 => 'employee', )" bool(true)
Output for hhvm-3.10.0

Process exited with code 153.