3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $year = '2015'; $date = '01/01/' . $year; $out = date('w', strtotime($date)) == 0 ? $date : $date + 7 - date('w', strtotime($date)); echo $out; ?>
based on fBHkK
Output for 7.1.0 - 7.2.0
Notice: A non well formed numeric value encountered in /in/WdcXV on line 6 4
Output for 5.4.0 - 7.0.20
4