3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $head=<<<EOF 943.375/h(ordinary) 1179.84375/h(extra) 58.5331744139849=3511.990464839094m =?=3512m =58h32m which means... EOF; echo $head; define("BSALARY",150940); echo "月俸:BSALARY\n"; define("EX_INCLUDED",69060); echo "見込み残業:EX_INCLUDED"; define("REG_TIME",8); $hsalary=ceil(BSALARY/REG_TIME)-1; echo "時間換算基本給:$hsalary円\n"; $capableextra=ceil(EX_INCLUDED / hsalary); echo "残業可能時間:$capableextra\n"; $total=160+$capableextra; echo "月稼働時間は$total\n"; $tperday=ceil($total/20); $dailyextra=tperday-8; echo "一日$tperday労働、平均残業$dailyextra時間";
based on VC8WD
Output for 7.1.0
943.375/h(ordinary) 1179.84375/h(extra) 58.5331744139849=3511.990464839094m =?=3512m =58h32m which means...月俸:BSALARY 見込み残業:EX_INCLUDED Notice: Undefined variable: hsalary円 in /in/bEhHq on line 17 時間換算基本給: Notice: Use of undefined constant hsalary - assumed 'hsalary' in /in/bEhHq on line 18 Warning: A non-numeric value encountered in /in/bEhHq on line 18 Warning: Division by zero in /in/bEhHq on line 18 残業可能時間:INF 月稼働時間はINF Notice: Use of undefined constant tperday - assumed 'tperday' in /in/bEhHq on line 23 Warning: A non-numeric value encountered in /in/bEhHq on line 23 Notice: Undefined variable: tperday労働、平均残業 in /in/bEhHq on line 24 Notice: Undefined variable: dailyextra時間 in /in/bEhHq on line 24 一日
Output for 7.0.0 - 7.0.14
943.375/h(ordinary) 1179.84375/h(extra) 58.5331744139849=3511.990464839094m =?=3512m =58h32m which means...月俸:BSALARY 見込み残業:EX_INCLUDED Notice: Undefined variable: hsalary円 in /in/bEhHq on line 17 時間換算基本給: Notice: Use of undefined constant hsalary - assumed 'hsalary' in /in/bEhHq on line 18 Warning: Division by zero in /in/bEhHq on line 18 残業可能時間:INF 月稼働時間はINF Notice: Use of undefined constant tperday - assumed 'tperday' in /in/bEhHq on line 23 Notice: Undefined variable: tperday労働、平均残業 in /in/bEhHq on line 24 Notice: Undefined variable: dailyextra時間 in /in/bEhHq on line 24 一日
Output for 5.0.4 - 5.1.1, 5.1.3 - 5.6.28, hhvm-3.10.0 - 3.12.0
943.375/h(ordinary) 1179.84375/h(extra) 58.5331744139849=3511.990464839094m =?=3512m =58h32m which means...月俸:BSALARY 見込み残業:EX_INCLUDED Notice: Undefined variable: hsalary円 in /in/bEhHq on line 17 時間換算基本給: Notice: Use of undefined constant hsalary - assumed 'hsalary' in /in/bEhHq on line 18 Warning: Division by zero in /in/bEhHq on line 18 残業可能時間:0 月稼働時間は160 Notice: Use of undefined constant tperday - assumed 'tperday' in /in/bEhHq on line 23 Notice: Undefined variable: tperday労働、平均残業 in /in/bEhHq on line 24 Notice: Undefined variable: dailyextra時間 in /in/bEhHq on line 24 一日
Output for 5.1.2
943.375/h(ordinary) 1179.84375/h(extra) 58.5331744139849=3511.990464839094m =?=3512m =58h32m which means...月俸:BSALARY 見込み残業:EX_INCLUDED Notice: Undefined variable: hsalary円 in /in/bEhHq on line 18 時間換算基本給: Notice: Use of undefined constant hsalary - assumed 'hsalary' in /in/bEhHq on line 19 Warning: Division by zero in /in/bEhHq on line 19 残業可能時間:0 月稼働時間は160 Notice: Use of undefined constant tperday - assumed 'tperday' in /in/bEhHq on line 24 Notice: Undefined variable: tperday労働、平均残業 in /in/bEhHq on line 25 Notice: Undefined variable: dailyextra時間 in /in/bEhHq on line 25 一日
Output for 4.3.0 - 4.4.1, 4.4.3 - 5.0.3
943.375/h(ordinary) 1179.84375/h(extra) 58.5331744139849=3511.990464839094m =?=3512m =58h32m which means...月俸:BSALARY 見込み残業:EX_INCLUDED Notice: Undefined variable: hsalary円 in /in/bEhHq on line 17 時間換算基本給: Notice: Use of undefined constant hsalary - assumed 'hsalary' in /in/bEhHq on line 18 Warning: Division by zero in /in/bEhHq on line 18 残業可能時間:0 月稼働時間は160 Notice: Use of undefined constant tperday - assumed 'tperday' in /in/bEhHq on line 23 Notice: Undefined variable: tperday労働、平均残業 in /in/bEhHq on line 24 Notice: Undefined variable: dailyextra時間 in /in/bEhHq on line 24 一日
Output for 4.4.2
943.375/h(ordinary) 1179.84375/h(extra) 58.5331744139849=3511.990464839094m =?=3512m =58h32m which means...月俸:BSALARY 見込み残業:EX_INCLUDED Notice: Undefined variable: hsalary円 in /in/bEhHq on line 18 時間換算基本給: Notice: Use of undefined constant hsalary - assumed 'hsalary' in /in/bEhHq on line 19 Warning: Division by zero in /in/bEhHq on line 19 残業可能時間:0 月稼働時間は160 Notice: Use of undefined constant tperday - assumed 'tperday' in /in/bEhHq on line 24 Notice: Undefined variable: tperday労働、平均残業 in /in/bEhHq on line 25 Notice: Undefined variable: dailyextra時間 in /in/bEhHq on line 25 一日