3v4l.org

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