3v4l.org

run code in 300+ PHP versions simultaneously
<?php $TargetDate = 10005248; $Offset = 14400; function TDateTime2DateTime($date,...$offset){ // Magic delphi TDateTime of 01/01/1970 $UnixStartDate = 25569.0; return round(($date - $UnixStartDate) * 86400) + (int)$offset; } function DateTime2TDateTime($date){ // Magic delphi TDateTime of 01/01/1970 $UnixStartDate = 25569.0; return (float) ($date / 86400) + $UnixStartDate; } echo TDateTime2DateTime($TargetDate,$Offset)."\n"; echo DateTime2TDateTime(862244265600);
Output for git.master, git.master_jit, rfc.property-hooks
862244265601 10005248

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:
36.41 ms | 405 KiB | 5 Q