3v4l.org

run code in 300+ PHP versions simultaneously
<?php $today = new DateTime(); $prevDay = new DateTime( $prevRow->Date_Time ); $gap = date_diff( $today, $prevDay )->format('%d'); ?>
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined variable $prevRow in /in/DH5JH on line 3 Warning: Attempt to read property "Date_Time" on null in /in/DH5JH on line 3 Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in /in/DH5JH on line 3

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:
44.79 ms | 402 KiB | 8 Q