3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo json_encode(array ( array ( 'name' => 'Deutsch', 'translationCount' => '65', ), array ( 'name' => 'English', 'translationCount' => '65', ), array ( 'name' => 'Español', 'translationCount' => '65', ), array ( 'name' => 'Français', 'translationCount' => '65', ), array ( 'name' => 'Italiano', 'translationCount' => '65', ), array ( 'name' => '日本語', 'translationCount' => '65', ), ));
based on pXgmb
Output for 5.2.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
[{"name":"Deutsch","translationCount":"65"},{"name":"English","translationCount":"65"},{"name":"Espa\u00f1ol","translationCount":"65"},{"name":"Fran\u00e7ais","translationCount":"65"},{"name":"Italiano","translationCount":"65"},{"name":"\u65e5\u672c\u8a9e","translationCount":"65"}]
Output for 5.0.0 - 5.1.6
Fatal error: Call to undefined function json_encode() in /in/ZuhSD 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/ZuhSD 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/ZuhSD 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/ZuhSD on line 3