3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php define('PRIORITY_INQUIRER_OBJECT', 1); define('PRIORITY_INQUIRER_QUESTION', 2); $sum = 3; $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.10.0 - 3.12.0, 7.0.0 - 7.1.0
int(30) int(70) int(0)