3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo json_encode([name=>1,name=>2,name=>3,name=>4,name=>5]);
based on QVOub
Output for 7.2.0 - 7.3.0alpha1
Warning: Use of undefined constant name - assumed 'name' (this will throw an Error in a future version of PHP) in /in/4QFpD on line 2 Warning: Use of undefined constant name - assumed 'name' (this will throw an Error in a future version of PHP) in /in/4QFpD on line 2 Warning: Use of undefined constant name - assumed 'name' (this will throw an Error in a future version of PHP) in /in/4QFpD on line 2 Warning: Use of undefined constant name - assumed 'name' (this will throw an Error in a future version of PHP) in /in/4QFpD on line 2 Warning: Use of undefined constant name - assumed 'name' (this will throw an Error in a future version of PHP) in /in/4QFpD on line 2 {"name":5}
Output for 5.6.0 - 7.1.7
Notice: Use of undefined constant name - assumed 'name' in /in/4QFpD on line 2 Notice: Use of undefined constant name - assumed 'name' in /in/4QFpD on line 2 Notice: Use of undefined constant name - assumed 'name' in /in/4QFpD on line 2 Notice: Use of undefined constant name - assumed 'name' in /in/4QFpD on line 2 Notice: Use of undefined constant name - assumed 'name' in /in/4QFpD on line 2 {"name":5}