3v4l.org

run code in 300+ PHP versions simultaneously
<?php $day_now = date("l"); if($day_now != "Monday"){ $date_beg = date("Y-m-d",strtotime("last Monday")); }else{ $date_beg = date("Y-m-d"); } $ts = $date_beg; $unJour = 3600 * 24; // nombre de secondes dans une journée $ts += 4*$unJour; // 4 jours de plus $date_end = date("Y-m-d",$ts); echo $date_end;
Output for git.master, git.master_jit, rfc.property-hooks
Warning: A non-numeric value encountered in /in/oB9FW on line 10 1970-01-05

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