3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo json_encode(array ( array ( 'name' => 'Deutsch', 'todo' => 1, ), array ( 'name' => 'English', 'todo' => 0, ), array ( 'name' => 'Español', 'todo' => 1, ), array ( 'name' => 'Français', 'todo' => 1, ), array ( 'name' => 'Italiano', 'todo' => 1, ), array ( 'name' => '日本語', 'todo' => 1, ), ));
based on gphkQ
Output for 5.2.0 - 7.1.0
[{"name":"Deutsch","todo":1},{"name":"English","todo":0},{"name":"Espa\u00f1ol","todo":1},{"name":"Fran\u00e7ais","todo":1},{"name":"Italiano","todo":1},{"name":"\u65e5\u672c\u8a9e","todo":1}]
Output for 5.0.0 - 5.1.6
Fatal error: Call to undefined function json_encode() in /in/pXgmb on line 3
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: json_encode() in /in/pXgmb on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: json_encode() in /in/pXgmb on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: json_encode() in /in/pXgmb on line 3