3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $zeit = time(); $datum = getdate($zeit); $mm = sprintf("%02d", $datum[mon]); $tt = sprintf("%02d", $datum[mday]); $hh = sprintf("%02d", $datum[hours]); $nn = sprintf("%02d", $datum[minutes]); $ss = sprintf("%02d", $datum[seconds]); $ts = $datum[year] . $mm . $tt . $hh . $nn . $ss; echo $ts;
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Notice: Use of undefined constant mon - assumed 'mon' in /in/g0Tfj on line 5 Notice: Use of undefined constant mday - assumed 'mday' in /in/g0Tfj on line 6 Notice: Use of undefined constant hours - assumed 'hours' in /in/g0Tfj on line 7 Notice: Use of undefined constant minutes - assumed 'minutes' in /in/g0Tfj on line 8 Notice: Use of undefined constant seconds - assumed 'seconds' in /in/g0Tfj on line 9 Notice: Use of undefined constant year - assumed 'year' in /in/g0Tfj on line 11 20140422205343