3v4l.org

run code in 300+ PHP versions simultaneously
<?php $today_day = 28; $day = date("d-m-Y", mktime(0,0,0,2, $today_day,date("Y"))); $firstday = $day; $data_exploded=explode("-", $firstday); $mes = data_exploded[1]; $ano = data_exploded[2]; echo "firstday=$firstday\n"; echo "m=".$mes . " | Y=" . $ano."\n"; echo $day ."\n"; $today_day++; $day = date("d-m-Y", mktime(0,0,0,$mes,$today_day,$ano)); echo "m=".$mes . " | Y=" . $ano."\n"; echo $day ."\n"; $today_day++; $day = date("d-m-Y", mktime(0,0,0,$mes,$today_day,$ano)); echo $day ."\n"; ?>
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Undefined constant "data_exploded" in /in/LSOOb:6 Stack trace: #0 {main} thrown in /in/LSOOb 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:
48.58 ms | 401 KiB | 8 Q