3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php namespace security; function get_user() { $user = (object) array('email' => 'abcd@abcd.com', 'name' => 'John Doe'); return $user; } echo "<li><p class=\"navbar-text\">Welcome, {${function(){$x=\security\get_user()->name;return 'x';}()}}</p></li>";
Output for 5.3.0 - 5.4.19
Parse error: syntax error, unexpected '(' in /in/gIARZ on line 9
Process exited with code 255.