3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fecha_ingreso = strtotime('2014-06-23'); $fecha_egreso = strtotime('2014-06-27'); $noches = floor(($fecha_egreso - $fecha_ingeso) / 3600 / 24); echo $noche;

preferences:
40.49 ms | 402 KiB | 5 Q