3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $o = JSON_PARTIAL_OUTPUT_ON_ERROR | JSON_INVALID_UTF8_SUBSTITUTE; if ($o & JSON_PARTIAL_OUTPUT_ON_ERROR) { echo '1'; }
based on cQQLE
Output for 7.2.0 - 7.3.0beta1
1
Output for 7.1.0 - 7.1.20
Notice: Use of undefined constant JSON_INVALID_UTF8_SUBSTITUTE - assumed 'JSON_INVALID_UTF8_SUBSTITUTE' in /in/5mEbY on line 3 Warning: A non-numeric value encountered in /in/5mEbY on line 3 1
Output for hhvm-3.22.0
Notice: Use of undefined constant JSON_INVALID_UTF8_SUBSTITUTE - assumed 'JSON_INVALID_UTF8_SUBSTITUTE' in /in/5mEbY on line -1 1
Output for 5.6.0 - 5.6.30, hhvm-3.18.5 - 3.21.3
Notice: Use of undefined constant JSON_INVALID_UTF8_SUBSTITUTE - assumed 'JSON_INVALID_UTF8_SUBSTITUTE' in /in/5mEbY on line 3 1