3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php print(SORT_REGULAR); print(SORT_NUMERIC); print(SORT_STRING); print(SORT_LOCALE_STRING); print(SORT_NATURAL); print(SORT_FLAG_CASE);
Output for 5.4.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
012568
Output for hhvm-3.10.0

Process exited with code 153.
Output for 4.4.0 - 4.4.9, 5.0.2 - 5.3.29
0125 Notice: Use of undefined constant SORT_NATURAL - assumed 'SORT_NATURAL' in /in/TLFi9 on line 7 SORT_NATURAL Notice: Use of undefined constant SORT_FLAG_CASE - assumed 'SORT_FLAG_CASE' in /in/TLFi9 on line 8 SORT_FLAG_CASE
Output for 4.3.0 - 4.3.11, 5.0.0 - 5.0.1
012 Notice: Use of undefined constant SORT_LOCALE_STRING - assumed 'SORT_LOCALE_STRING' in /in/TLFi9 on line 6 SORT_LOCALE_STRING Notice: Use of undefined constant SORT_NATURAL - assumed 'SORT_NATURAL' in /in/TLFi9 on line 7 SORT_NATURAL Notice: Use of undefined constant SORT_FLAG_CASE - assumed 'SORT_FLAG_CASE' in /in/TLFi9 on line 8 SORT_FLAG_CASE