3v4l.org

run code in 300+ PHP versions simultaneously
943.375/h(ordinary) 1179.84375/h(extra) 58.5331744139849=3511.990464839094m =?=3512m =58h32m which means... <?php 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時間";
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
943.375/h(ordinary) 1179.84375/h(extra) 58.5331744139849=3511.990464839094m =?=3512m =58h32m which means... 月俸:BSALARY 見込み残業:EX_INCLUDED時間換算基本給:hsalary円 Fatal error: Uncaught Error: Undefined constant "hsalary" in /in/4cYIP:15 Stack trace: #0 {main} thrown in /in/4cYIP on line 15
Process exited with code 255.
Output for 7.2.0 - 7.2.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.33
943.375/h(ordinary) 1179.84375/h(extra) 58.5331744139849=3511.990464839094m =?=3512m =58h32m which means... 月俸:BSALARY 見込み残業:EX_INCLUDED時間換算基本給:hsalary円 Warning: Use of undefined constant hsalary - assumed 'hsalary' (this will throw an Error in a future version of PHP) in /in/4cYIP on line 15 Warning: A non-numeric value encountered in /in/4cYIP on line 15 Warning: Division by zero in /in/4cYIP on line 15 残業可能時間:INF Warning: Use of undefined constant capableextra - assumed 'capableextra' (this will throw an Error in a future version of PHP) in /in/4cYIP on line 17 Warning: A non-numeric value encountered in /in/4cYIP on line 17 月稼働時間は160 Warning: Use of undefined constant tperday - assumed 'tperday' (this will throw an Error in a future version of PHP) in /in/4cYIP on line 20 Warning: A non-numeric value encountered in /in/4cYIP on line 20 Notice: Undefined variable: tperday労働、平均残業 in /in/4cYIP on line 21 Notice: Undefined variable: dailyextra時間 in /in/4cYIP on line 21 一日
Output for 7.3.32 - 7.3.33
943.375/h(ordinary) 1179.84375/h(extra) 58.5331744139849=3511.990464839094m =?=3512m =58h32m which means... 月俸:BSALARY 見込み残業:EX_INCLUDED時間換算基本給:hsalary円 Warning: Use of undefined constant hsalary - assumed 'hsalary' (this will throw an Error in a future version of PHP) in /in/4cYIP on line 15 Warning: A non-numeric value encountered in /in/4cYIP on line 15 Warning: Division by zero in /in/4cYIP on line 15 残業可能時間:INF Warning: Use of undefined constant capableextra - assumed 'capableextra' (this will throw an Error in a future version of PHP) in /in/4cYIP on line 17 Warning: A non-numeric value encountered in /in/4cYIP on line 17 月稼働時間は160 Warning: Use of undefined constant tperday - assumed 'tperday' (this will throw an Error in a future version of PHP) in /in/4cYIP on line 20 Warning: A non-numeric value encountered in /in/4cYIP on line 20 一日
Output for 7.1.0 - 7.1.33
943.375/h(ordinary) 1179.84375/h(extra) 58.5331744139849=3511.990464839094m =?=3512m =58h32m which means... 月俸:BSALARY 見込み残業:EX_INCLUDED時間換算基本給:hsalary円 Notice: Use of undefined constant hsalary - assumed 'hsalary' in /in/4cYIP on line 15 Warning: A non-numeric value encountered in /in/4cYIP on line 15 Warning: Division by zero in /in/4cYIP on line 15 残業可能時間:INF Notice: Use of undefined constant capableextra - assumed 'capableextra' in /in/4cYIP on line 17 Warning: A non-numeric value encountered in /in/4cYIP on line 17 月稼働時間は160 Notice: Use of undefined constant tperday - assumed 'tperday' in /in/4cYIP on line 20 Warning: A non-numeric value encountered in /in/4cYIP on line 20 Notice: Undefined variable: tperday労働、平均残業 in /in/4cYIP on line 21 Notice: Undefined variable: dailyextra時間 in /in/4cYIP on line 21 一日
Output for 7.0.0 - 7.0.33
943.375/h(ordinary) 1179.84375/h(extra) 58.5331744139849=3511.990464839094m =?=3512m =58h32m which means... 月俸:BSALARY 見込み残業:EX_INCLUDED時間換算基本給:hsalary円 Notice: Use of undefined constant hsalary - assumed 'hsalary' in /in/4cYIP on line 15 Warning: Division by zero in /in/4cYIP on line 15 残業可能時間:INF Notice: Use of undefined constant capableextra - assumed 'capableextra' in /in/4cYIP on line 17 月稼働時間は160 Notice: Use of undefined constant tperday - assumed 'tperday' in /in/4cYIP on line 20 Notice: Undefined variable: tperday労働、平均残業 in /in/4cYIP on line 21 Notice: Undefined variable: dailyextra時間 in /in/4cYIP on line 21 一日
Output for 5.0.4 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.40
943.375/h(ordinary) 1179.84375/h(extra) 58.5331744139849=3511.990464839094m =?=3512m =58h32m which means... 月俸:BSALARY 見込み残業:EX_INCLUDED時間換算基本給:hsalary円 Notice: Use of undefined constant hsalary - assumed 'hsalary' in /in/4cYIP on line 15 Warning: Division by zero in /in/4cYIP on line 15 残業可能時間:0 Notice: Use of undefined constant capableextra - assumed 'capableextra' in /in/4cYIP on line 17 月稼働時間は160 Notice: Use of undefined constant tperday - assumed 'tperday' in /in/4cYIP on line 20 Notice: Undefined variable: tperday労働、平均残業 in /in/4cYIP on line 21 Notice: Undefined variable: dailyextra時間 in /in/4cYIP on line 21 一日
Output for 4.3.0 - 4.3.11, 4.4.0 - 4.4.9, 5.0.0 - 5.0.3
943.375/h(ordinary) 1179.84375/h(extra) 58.5331744139849=3511.990464839094m =?=3512m =58h32m which means... 月俸:BSALARY 見込み残業:EX_INCLUDED時間換算基本給:hsalary円 Notice: Use of undefined constant hsalary - assumed 'hsalary' in /in/4cYIP on line 15 Warning: Division by zero in /in/4cYIP on line 15 残業可能時間:0 Notice: Use of undefined constant capableextra - assumed 'capableextra' in /in/4cYIP on line 17 月稼働時間は160 Notice: Use of undefined constant tperday - assumed 'tperday' in /in/4cYIP on line 20 Notice: Undefined variable: tperday労働、平均残業 in /in/4cYIP on line 21 Notice: Undefined variable: dailyextra時間 in /in/4cYIP on line 21 一日

preferences:
252.93 ms | 403 KiB | 458 Q