3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date1 = '2015-03-22 09:27:02'; $date2 = 1427510741; $date1 = new DateTime($date1); $date1 = $date1->modify('+100 days'); $date1 = $date1->format('Y-m-d'); //Or another format $date2 = new DateTime($date2); $date2 = $date2->modify('+100 days'); $date2 = $date2->format('Y-m-d'); //Or another format if($date1 == $date2) { echo 'same'; } else { //other }
Output for git.master, git.master_jit, rfc.property-hooks

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