3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $need_score = 200; $timestamp = 1417763475; $current_score = 0.7; $date_now = new DateTime(); $date = new DateTime(); $date->setTimestamp($timestamp); $interval_days = $date_now->diff($date)->days + 1; print ($need_score - $current_score) * $interval_days;
based on LKZSI
Output for 5.6.28, 7.0.20 - 7.2.0
54209.6
Output for 7.0.6
102838.8
Output for 7.0.5
96660.5
Output for 7.0.4
92076.6
Output for 7.0.3
93671
Output for 7.0.2
94468.2
Output for 7.0.1
94667.5
Output for 7.0.0
95265.4
Output for 5.6.21
102639.5
Output for 5.6.20
98055.6
Output for 5.6.19
91478.7
Output for 5.6.18
92873.8
Output for 5.6.17
93870.3
Output for 5.6.16
95464.7
Output for 5.6.15
95664
Output for 5.6.14
96461.2
Output for 5.6.13
99251.4
Output for 5.6.12
100048.6
Output for 5.6.11
100845.8
Output for 5.6.10
101244.4
Output for 5.6.9
101643
Output for 5.6.8
102041.6
Output for 5.5.35
106625.5
Output for 5.5.34
98254.9
Output for 5.5.33
91678
Output for 5.5.32
93471.7
Output for 5.5.31
94069.6
Output for 5.5.30
96261.9
Output for 5.5.29
99450.7
Output for 5.5.28
100247.9
Output for 5.5.27
100447.2
Output for 5.5.26
101443.7
Output for 5.5.25
101842.3
Output for 5.5.24
106824.8
Output for 5.3.0 - 5.4.45
69555.7
Output for 5.2.0 - 5.2.17
Fatal error: Call to undefined method DateTime::setTimestamp() in /in/afCkP on line 9
Process exited with code 255.
Output for 5.0.0 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/afCkP on line 7
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /in/afCkP on line 10
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1
Parse error: parse error, unexpected T_OBJECT_OPERATOR in /in/afCkP on line 10
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/afCkP on line 10
Process exited with code 255.