3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo JSON_HEX_QUOT, JSON_HEX_TAG, JSON_HEX_AMP, JSON_HEX_APOS, JSON_NUMERIC_CHECK, JSON_PRETTY_PRINT, JSON_UNESCAPED_SLASHES, JSON_FORCE_OBJECT, JSON_UNESCAPED_UNICODE;
based on hOYfi
Output for 5.4.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
8124321286416256
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.3.3 - 5.3.29
812432 Notice: Use of undefined constant JSON_PRETTY_PRINT - assumed 'JSON_PRETTY_PRINT' in /in/TWEXn on line 2 JSON_PRETTY_PRINT Notice: Use of undefined constant JSON_UNESCAPED_SLASHES - assumed 'JSON_UNESCAPED_SLASHES' in /in/TWEXn on line 2 JSON_UNESCAPED_SLASHES16 Notice: Use of undefined constant JSON_UNESCAPED_UNICODE - assumed 'JSON_UNESCAPED_UNICODE' in /in/TWEXn on line 2 JSON_UNESCAPED_UNICODE
Output for 5.3.0 - 5.3.2
8124 Notice: Use of undefined constant JSON_NUMERIC_CHECK - assumed 'JSON_NUMERIC_CHECK' in /in/TWEXn on line 2 JSON_NUMERIC_CHECK Notice: Use of undefined constant JSON_PRETTY_PRINT - assumed 'JSON_PRETTY_PRINT' in /in/TWEXn on line 2 JSON_PRETTY_PRINT Notice: Use of undefined constant JSON_UNESCAPED_SLASHES - assumed 'JSON_UNESCAPED_SLASHES' in /in/TWEXn on line 2 JSON_UNESCAPED_SLASHES16 Notice: Use of undefined constant JSON_UNESCAPED_UNICODE - assumed 'JSON_UNESCAPED_UNICODE' in /in/TWEXn on line 2 JSON_UNESCAPED_UNICODE
Output for 4.3.0 - 5.2.17
Notice: Use of undefined constant JSON_HEX_QUOT - assumed 'JSON_HEX_QUOT' in /in/TWEXn on line 2 JSON_HEX_QUOT Notice: Use of undefined constant JSON_HEX_TAG - assumed 'JSON_HEX_TAG' in /in/TWEXn on line 2 JSON_HEX_TAG Notice: Use of undefined constant JSON_HEX_AMP - assumed 'JSON_HEX_AMP' in /in/TWEXn on line 2 JSON_HEX_AMP Notice: Use of undefined constant JSON_HEX_APOS - assumed 'JSON_HEX_APOS' in /in/TWEXn on line 2 JSON_HEX_APOS Notice: Use of undefined constant JSON_NUMERIC_CHECK - assumed 'JSON_NUMERIC_CHECK' in /in/TWEXn on line 2 JSON_NUMERIC_CHECK Notice: Use of undefined constant JSON_PRETTY_PRINT - assumed 'JSON_PRETTY_PRINT' in /in/TWEXn on line 2 JSON_PRETTY_PRINT Notice: Use of undefined constant JSON_UNESCAPED_SLASHES - assumed 'JSON_UNESCAPED_SLASHES' in /in/TWEXn on line 2 JSON_UNESCAPED_SLASHES Notice: Use of undefined constant JSON_FORCE_OBJECT - assumed 'JSON_FORCE_OBJECT' in /in/TWEXn on line 2 JSON_FORCE_OBJECT Notice: Use of undefined constant JSON_UNESCAPED_UNICODE - assumed 'JSON_UNESCAPED_UNICODE' in /in/TWEXn on line 2 JSON_UNESCAPED_UNICODE