3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $text = 'База данни грешка.'; echo json_encode($text,'JSON_UNESCAPED_UNICODE');
based on 0BCJH
Output for 7.0.0 - 7.2.0
Warning: json_encode() expects parameter 2 to be integer, string given in /in/rPPjB on line 4
Output for 5.5.0 - 5.6.28
Warning: json_encode() expects parameter 2 to be long, string given in /in/rPPjB on line 4