3v4l.org

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