3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(JSON_NUMERIC_CHECK, JSON_FORCE_OBJECT, JSON_UNESCAPED_SLASHES, JSON_PRETTY_PRINT, JSON_UNESCAPED_UNICODE);
Output for 5.4.0 - 5.4.45, 5.5.24 - 5.5.35, 5.6.8 - 5.6.21, 7.0.0 - 7.0.20, 7.1.0 - 7.1.25, 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.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.7
int(32) int(16) int(64) int(128) int(256)
Output for 5.3.3 - 5.3.29
Notice: Use of undefined constant JSON_UNESCAPED_SLASHES - assumed 'JSON_UNESCAPED_SLASHES' in /in/YFGvg on line 2 Notice: Use of undefined constant JSON_PRETTY_PRINT - assumed 'JSON_PRETTY_PRINT' in /in/YFGvg on line 2 Notice: Use of undefined constant JSON_UNESCAPED_UNICODE - assumed 'JSON_UNESCAPED_UNICODE' in /in/YFGvg on line 2 int(32) int(16) string(22) "JSON_UNESCAPED_SLASHES" string(17) "JSON_PRETTY_PRINT" string(22) "JSON_UNESCAPED_UNICODE"
Output for 5.3.0 - 5.3.2
Notice: Use of undefined constant JSON_NUMERIC_CHECK - assumed 'JSON_NUMERIC_CHECK' in /in/YFGvg on line 2 Notice: Use of undefined constant JSON_UNESCAPED_SLASHES - assumed 'JSON_UNESCAPED_SLASHES' in /in/YFGvg on line 2 Notice: Use of undefined constant JSON_PRETTY_PRINT - assumed 'JSON_PRETTY_PRINT' in /in/YFGvg on line 2 Notice: Use of undefined constant JSON_UNESCAPED_UNICODE - assumed 'JSON_UNESCAPED_UNICODE' in /in/YFGvg on line 2 string(18) "JSON_NUMERIC_CHECK" int(16) string(22) "JSON_UNESCAPED_SLASHES" string(17) "JSON_PRETTY_PRINT" string(22) "JSON_UNESCAPED_UNICODE"
Output for 4.3.0 - 4.3.11, 4.4.0 - 4.4.9, 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17
Notice: Use of undefined constant JSON_NUMERIC_CHECK - assumed 'JSON_NUMERIC_CHECK' in /in/YFGvg on line 2 Notice: Use of undefined constant JSON_FORCE_OBJECT - assumed 'JSON_FORCE_OBJECT' in /in/YFGvg on line 2 Notice: Use of undefined constant JSON_UNESCAPED_SLASHES - assumed 'JSON_UNESCAPED_SLASHES' in /in/YFGvg on line 2 Notice: Use of undefined constant JSON_PRETTY_PRINT - assumed 'JSON_PRETTY_PRINT' in /in/YFGvg on line 2 Notice: Use of undefined constant JSON_UNESCAPED_UNICODE - assumed 'JSON_UNESCAPED_UNICODE' in /in/YFGvg on line 2 string(18) "JSON_NUMERIC_CHECK" string(17) "JSON_FORCE_OBJECT" string(22) "JSON_UNESCAPED_SLASHES" string(17) "JSON_PRETTY_PRINT" string(22) "JSON_UNESCAPED_UNICODE"

preferences:
221.4 ms | 404 KiB | 328 Q