3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(JSON_FORCE_OBJECT, JSON_UNESCAPED_SLASHES, JSON_PRETTY_PRINT, JSON_UNESCAPED_UNICODE);
Output for 5.4.0 - 7.1.0
int(16) int(64) int(128) int(256)
Output for 5.3.0 - 5.3.29
Notice: Use of undefined constant JSON_UNESCAPED_SLASHES - assumed 'JSON_UNESCAPED_SLASHES' in /in/4luQi on line 2 Notice: Use of undefined constant JSON_PRETTY_PRINT - assumed 'JSON_PRETTY_PRINT' in /in/4luQi on line 2 Notice: Use of undefined constant JSON_UNESCAPED_UNICODE - assumed 'JSON_UNESCAPED_UNICODE' in /in/4luQi on line 2 int(16) string(22) "JSON_UNESCAPED_SLASHES" string(17) "JSON_PRETTY_PRINT" string(22) "JSON_UNESCAPED_UNICODE"
Output for 4.3.0 - 5.2.17
Notice: Use of undefined constant JSON_FORCE_OBJECT - assumed 'JSON_FORCE_OBJECT' in /in/4luQi on line 2 Notice: Use of undefined constant JSON_UNESCAPED_SLASHES - assumed 'JSON_UNESCAPED_SLASHES' in /in/4luQi on line 2 Notice: Use of undefined constant JSON_PRETTY_PRINT - assumed 'JSON_PRETTY_PRINT' in /in/4luQi on line 2 Notice: Use of undefined constant JSON_UNESCAPED_UNICODE - assumed 'JSON_UNESCAPED_UNICODE' in /in/4luQi on line 2 string(17) "JSON_FORCE_OBJECT" string(22) "JSON_UNESCAPED_SLASHES" string(17) "JSON_PRETTY_PRINT" string(22) "JSON_UNESCAPED_UNICODE"