3v4l.org

run code in 300+ PHP versions simultaneously
<?php //echo (new DateTime())->format('Y-m-d'); $azi = date('Y-m-d'); $azi->sub(new DateInterval('P5D')); $lead_time= (new DateTime('2014-09-05 13:18:26'))->format('Y-m-d'); if($lead_time<$azi){ // Leaduri mai vechi $l_class=""; }else{ // Leaduri Fresh $l_class="fresh_leads"; echo "Fresh"; } /* $azi->sub(new DateInterval('P5D')); echo $azi; */
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Call to a member function sub() on string in /in/Ei8S2:5 Stack trace: #0 {main} thrown in /in/Ei8S2 on line 5
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:
39.34 ms | 401 KiB | 8 Q