3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str = '{username:kavi}'; $arr=json_decode($str, true); $username2 = $arr['username']; echo json_encode($username2); } ?>
Output for 5.3.0 - 5.4.21
Parse error: syntax error, unexpected '}' in /in/2i1Bh on line 10
Process exited with code 255.