3v4l.org

run code in 300+ PHP versions simultaneously
<?php $month = $dateParts[0]; $day = $dateParts[1]; $year = $dateParts[2]; $dateString = $month . $day . $year; $exp = new DateTime($dateString); $now = new DateTime(); if ( $exp < $now ) echo "in future"; else echo "in past";
Output for git.master, git.master_jit
Warning: Undefined variable $dateParts in /in/90diS on line 3 Warning: Trying to access array offset on value of type null in /in/90diS on line 3 Warning: Undefined variable $dateParts in /in/90diS on line 4 Warning: Trying to access array offset on value of type null in /in/90diS on line 4 Warning: Undefined variable $dateParts in /in/90diS on line 5 Warning: Trying to access array offset on value of type null in /in/90diS on line 5 in future
Output for rfc.property-hooks
Warning: Undefined variable $dateParts in /in/90diS on line 3 Warning: Trying to access array offset on null in /in/90diS on line 3 Warning: Undefined variable $dateParts in /in/90diS on line 4 Warning: Trying to access array offset on null in /in/90diS on line 4 Warning: Undefined variable $dateParts in /in/90diS on line 5 Warning: Trying to access array offset on null in /in/90diS on line 5 in future

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.97 ms | 402 KiB | 8 Q