3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fecha_ingreso = strtotime($reserva->fecha_ingreso); $fecha_egreso = strtotime($reserva->fecha_egreso); $noches = floor(($fecha_egreso - $fecha_ingeso) / 3600 / 24); echo $noche;
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined variable $reserva in /in/vrpE2 on line 3 Warning: Attempt to read property "fecha_ingreso" on null in /in/vrpE2 on line 3 Deprecated: strtotime(): Passing null to parameter #1 ($datetime) of type string is deprecated in /in/vrpE2 on line 3 Warning: Undefined variable $reserva in /in/vrpE2 on line 4 Warning: Attempt to read property "fecha_egreso" on null in /in/vrpE2 on line 4 Deprecated: strtotime(): Passing null to parameter #1 ($datetime) of type string is deprecated in /in/vrpE2 on line 4 Warning: Undefined variable $fecha_ingeso in /in/vrpE2 on line 5 Warning: Undefined variable $noche in /in/vrpE2 on line 7

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
40.12 ms | 402 KiB | 8 Q