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_ingreso) / 3600 / 24); echo $noche;

preferences:
37.03 ms | 402 KiB | 5 Q