3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $fecha_ingreso = strtotime('2014-06-23'); $fecha_egreso = strtotime('2014-06-27'); $noches = floor(($fecha_egreso - $fecha_ingeso) / 3600 / 24); echo $noche;
Output for 5.0.4 - 7.1.0
Notice: Undefined variable: fecha_ingeso in /in/lN4Kh on line 5 Notice: Undefined variable: noche in /in/lN4Kh on line 7
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: fecha_ingeso in /in/lN4Kh on line 5 Notice: Undefined variable: noche in /in/lN4Kh on line 7