3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $diff = strtotime($ckout[2].'-'.$ckout[0].'-'.$ckout[1]) - strtotime($ckin[2].'-'.$ckin[0].'-'.$ckin[1]); $days = ceil($diff/(3600*24)); ?>
Output for 5.0.4 - 7.1.0
Notice: Undefined variable: ckout in /in/BC63N on line 1 Notice: Undefined variable: ckout in /in/BC63N on line 1 Notice: Undefined variable: ckout in /in/BC63N on line 1 Notice: Undefined variable: ckin in /in/BC63N on line 1 Notice: Undefined variable: ckin in /in/BC63N on line 1 Notice: Undefined variable: ckin in /in/BC63N on line 1
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: ckout in /in/BC63N on line 1 Notice: Undefined variable: ckout in /in/BC63N on line 1 Notice: Undefined variable: ckout in /in/BC63N on line 1 Notice: Undefined variable: ckin in /in/BC63N on line 1 Notice: Undefined variable: ckin in /in/BC63N on line 1 Notice: Undefined variable: ckin in /in/BC63N on line 1