3v4l.org

run code in 300+ PHP versions simultaneously
<?php $list['timeadded'] = '01/02/2012 07:40:23'; $dt1 = new DateTime($list['timeadded']); $dt2 = new DateTime(); $dt2->sub(new Interval('P7D')); if ($dt1 < $dt2) { echo 'This date is within 7 days'; }
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Class "Interval" not found in /in/bljfs:6 Stack trace: #0 {main} thrown in /in/bljfs on line 6
Process exited with code 255.

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