3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dataInicio = '2013-10-14'; $dataFim = '2013-10-28'; list($ano1, $mes1, $dia1) = explode('-', $dataInicio); list($ano2, $mes2, $dia2) = explode('-', $dataFim); $f = mktime(0, 0, 0, $mes2, $dia2, $ano2); $i = mktime(0, 0, 0, $mes1, $dia1, $ano1); $diferencaSegundos = $f - $i; print $f; print ' -- '; print $i; print ' -- '; print floor($diferencaSegundos/86400);
Output for git.master, git.master_jit, rfc.property-hooks
1382914800 -- 1381701600 -- 14

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:
37.15 ms | 401 KiB | 8 Q