3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump( JSON_ERROR_RECURSION, JSON_ERROR_INF_OR_NAN, JSON_ERROR_UNSUPPORTED_TYPE, JSON_ERROR_INVALID_PROPERTY_NAME, JSON_ERROR_UTF16 );
Output for 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.17, 8.3.0 - 8.3.4
int(6) int(7) int(8) int(9) int(10)
Output for 5.5.0 - 5.5.38, 5.6.0 - 5.6.40
Notice: Use of undefined constant JSON_ERROR_INVALID_PROPERTY_NAME - assumed 'JSON_ERROR_INVALID_PROPERTY_NAME' in /in/HNaLX on line 7 Notice: Use of undefined constant JSON_ERROR_UTF16 - assumed 'JSON_ERROR_UTF16' in /in/HNaLX on line 9 int(6) int(7) int(8) string(32) "JSON_ERROR_INVALID_PROPERTY_NAME" string(16) "JSON_ERROR_UTF16"
Output for 5.4.0 - 5.4.45
Notice: Use of undefined constant JSON_ERROR_RECURSION - assumed 'JSON_ERROR_RECURSION' in /in/HNaLX on line 4 Notice: Use of undefined constant JSON_ERROR_INF_OR_NAN - assumed 'JSON_ERROR_INF_OR_NAN' in /in/HNaLX on line 5 Notice: Use of undefined constant JSON_ERROR_UNSUPPORTED_TYPE - assumed 'JSON_ERROR_UNSUPPORTED_TYPE' in /in/HNaLX on line 6 Notice: Use of undefined constant JSON_ERROR_INVALID_PROPERTY_NAME - assumed 'JSON_ERROR_INVALID_PROPERTY_NAME' in /in/HNaLX on line 7 Notice: Use of undefined constant JSON_ERROR_UTF16 - assumed 'JSON_ERROR_UTF16' in /in/HNaLX on line 9 string(20) "JSON_ERROR_RECURSION" string(21) "JSON_ERROR_INF_OR_NAN" string(27) "JSON_ERROR_UNSUPPORTED_TYPE" string(32) "JSON_ERROR_INVALID_PROPERTY_NAME" string(16) "JSON_ERROR_UTF16"

preferences:
276.3 ms | 403 KiB | 372 Q