3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function forums_fid() { if (!defined('FORUMS_FID')) { $GLOBALS['maktaba_fid'] = '14'; $GLOBALS['ask_question_fid'] = '9'; } define('FORUMS_FID', 1); } forums_fid(); echo $GLOBALS['maktaba_fid'].PHP_EOL; echo $GLOBALS['ask_question_fid'];
based on j4KXn
Output for 4.3.10 - 4.4.9, 5.0.2 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
14 9
Output for 4.3.0 - 4.3.9, 5.0.0 - 5.0.1
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/k7TVA on line 13 14PHP_EOL9