3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(JSON_ERROR_RECURSION); var_dump(JSON_ERROR_INF_OR_NAN); var_dump(JSON_ERROR_UNSUPPORTED_TYPE);
Output for 5.5.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
int(6) int(7) int(8)
Output for 4.3.0 - 5.4.45
Notice: Use of undefined constant JSON_ERROR_RECURSION - assumed 'JSON_ERROR_RECURSION' in /in/BCeFX on line 3 string(20) "JSON_ERROR_RECURSION" Notice: Use of undefined constant JSON_ERROR_INF_OR_NAN - assumed 'JSON_ERROR_INF_OR_NAN' in /in/BCeFX on line 4 string(21) "JSON_ERROR_INF_OR_NAN" Notice: Use of undefined constant JSON_ERROR_UNSUPPORTED_TYPE - assumed 'JSON_ERROR_UNSUPPORTED_TYPE' in /in/BCeFX on line 5 string(27) "JSON_ERROR_UNSUPPORTED_TYPE"