3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php //fscanf(STDIN, "%d %d", $n, $m); $n =15; $m = 0; $choshin_do = $n * 6; $tanshin_do = ($m * 30) + ($n * 0.5); if($choshin_do > $tanshin_do) { $do = $choshin_do - tanshin_do; } else { $do = $tanshin_do - $choshin_do; } echo ($do) . "\n";
based on 2VQCi
Output for 7.2.0
Warning: Use of undefined constant tanshin_do - assumed 'tanshin_do' (this will throw an Error in a future version of PHP) in /in/KpX9E on line 11 Warning: A non-numeric value encountered in /in/KpX9E on line 11 90
Output for 7.1.0 - 7.1.10
Notice: Use of undefined constant tanshin_do - assumed 'tanshin_do' in /in/KpX9E on line 11 Warning: A non-numeric value encountered in /in/KpX9E on line 11 90
Output for 5.3.19 - 7.0.20
Notice: Use of undefined constant tanshin_do - assumed 'tanshin_do' in /in/KpX9E on line 11 90