3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php define('PRIORITY_INQUIRER_OBJECT', 35); define('PRIORITY_INQUIRER_QUESTION', 35); $sum = 100; $object = (int) (round(PRIORITY_INQUIRER_OBJECT / $sum, 1) * 100); $question = (int) (round(PRIORITY_INQUIRER_QUESTION / $sum, 1) * 100); $commercial = (int) (100 - ($question + $object)); var_dump($object, $question, $commercial);
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
int(40) int(40) int(20)
Output for hhvm-3.10.0

Process exited with code 153.