3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('America/Montevideo'); $hoy = date("d/m/Y H:i:s"); $mañana = strtotime("+1 day", $hoy); echo $hoy; echo "<br>"; echo $mañana; /*if(isWeekend($hoy)){ echo "es finde"; }else{ echo "no es finde"; }*/ //$weekDay = date('w', strtotime($hoy)); function isWeekend($date) { $weekDay = date('w', strtotime($date)); return ($weekDay == 0 || $weekDay == 6); }
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught TypeError: strtotime(): Argument #2 ($baseTimestamp) must be of type ?int, string given in /in/8Pb1P:4 Stack trace: #0 /in/8Pb1P(4): strtotime('+1 day', '07/10/2015 15:5...') #1 {main} thrown in /in/8Pb1P on line 4
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:
63.52 ms | 401 KiB | 8 Q