3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $v = array( 'car_id' => 101, 'car_user_id' => 13, 'car_is_active' => 2, 'car_nickname' => 'Кукусик', 'car_modif_id' => 666, 'car_height' => null, 'car_prod_year' => 1901, 'car_vin' => 'abcdefgh123456789', 'car_number' => 'о001оо01', 'car_rimdiameter' => 22.0 ); print(json_encode($v));
Output for 5.2.0 - 7.1.0
{"car_id":101,"car_user_id":13,"car_is_active":2,"car_nickname":"\u041a\u0443\u043a\u0443\u0441\u0438\u043a","car_modif_id":666,"car_height":null,"car_prod_year":1901,"car_vin":"abcdefgh123456789","car_number":"\u043e001\u043e\u043e01","car_rimdiameter":22}
Output for 5.0.0 - 5.1.6
Fatal error: Call to undefined function json_encode() in /in/OkrsK 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/OkrsK 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/OkrsK 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/OkrsK on line 6