3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $v = array( 'car_id' => 102, 'car_is_active' => 1, 'car_nickname' => 'Мумусик', 'car_modif_id' => 777, 'car_height' => null, 'car_prod_year' => 1913, 'car_vin' => 'abcdefgh123456788', 'car_number' => 'о002оо01', 'car_rimdiameter' => 13.0 ); print(json_encode($v));
Output for 5.2.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
{"car_id":102,"car_is_active":1,"car_nickname":"\u041c\u0443\u043c\u0443\u0441\u0438\u043a","car_modif_id":777,"car_height":null,"car_prod_year":1913,"car_vin":"abcdefgh123456788","car_number":"\u043e002\u043e\u043e01","car_rimdiameter":13}
Output for 5.0.0 - 5.1.6
Fatal error: Call to undefined function json_encode() in /in/5p6se on line 6
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: json_encode() in /in/5p6se on line 6
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: json_encode() in /in/5p6se on line 6
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: json_encode() in /in/5p6se on line 6