3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $today = getDate(); $testName = $today[year] . '' . $today[mon] . '' . $today[mday] . '-' . $today[hours] . '' . $today[minutes] . '.png'; echo($testName);
based on 7gBSF
Output for 7.2.0
Warning: Use of undefined constant year - assumed 'year' (this will throw an Error in a future version of PHP) in /in/d0TWc on line 5 Warning: Use of undefined constant mon - assumed 'mon' (this will throw an Error in a future version of PHP) in /in/d0TWc on line 5 Warning: Use of undefined constant mday - assumed 'mday' (this will throw an Error in a future version of PHP) in /in/d0TWc on line 5 Warning: Use of undefined constant hours - assumed 'hours' (this will throw an Error in a future version of PHP) in /in/d0TWc on line 5 Warning: Use of undefined constant minutes - assumed 'minutes' (this will throw an Error in a future version of PHP) in /in/d0TWc on line 5 201592-2342.png
Output for 4.3.1 - 5.4.44, 5.6.28, 7.0.20 - 7.1.10
Notice: Use of undefined constant year - assumed 'year' in /in/d0TWc on line 5 Notice: Use of undefined constant mon - assumed 'mon' in /in/d0TWc on line 5 Notice: Use of undefined constant mday - assumed 'mday' in /in/d0TWc on line 5 Notice: Use of undefined constant hours - assumed 'hours' in /in/d0TWc on line 5 Notice: Use of undefined constant minutes - assumed 'minutes' in /in/d0TWc on line 5 201592-2342.png
Output for 7.0.6
Notice: Use of undefined constant year - assumed 'year' in /in/d0TWc on line 5 Notice: Use of undefined constant mon - assumed 'mon' in /in/d0TWc on line 5 Notice: Use of undefined constant mday - assumed 'mday' in /in/d0TWc on line 5 Notice: Use of undefined constant hours - assumed 'hours' in /in/d0TWc on line 5 Notice: Use of undefined constant minutes - assumed 'minutes' in /in/d0TWc on line 5 201653-1516.png
Output for 7.0.5
Notice: Use of undefined constant year - assumed 'year' in /in/d0TWc on line 5 Notice: Use of undefined constant mon - assumed 'mon' in /in/d0TWc on line 5 Notice: Use of undefined constant mday - assumed 'mday' in /in/d0TWc on line 5 Notice: Use of undefined constant hours - assumed 'hours' in /in/d0TWc on line 5 Notice: Use of undefined constant minutes - assumed 'minutes' in /in/d0TWc on line 5 201643-352.png
Output for 7.0.4
Notice: Use of undefined constant year - assumed 'year' in /in/d0TWc on line 5 Notice: Use of undefined constant mon - assumed 'mon' in /in/d0TWc on line 5 Notice: Use of undefined constant mday - assumed 'mday' in /in/d0TWc on line 5 Notice: Use of undefined constant hours - assumed 'hours' in /in/d0TWc on line 5 Notice: Use of undefined constant minutes - assumed 'minutes' in /in/d0TWc on line 5 2016310-1515.png
Output for 7.0.3
Notice: Use of undefined constant year - assumed 'year' in /in/d0TWc on line 5 Notice: Use of undefined constant mon - assumed 'mon' in /in/d0TWc on line 5 Notice: Use of undefined constant mday - assumed 'mday' in /in/d0TWc on line 5 Notice: Use of undefined constant hours - assumed 'hours' in /in/d0TWc on line 5 Notice: Use of undefined constant minutes - assumed 'minutes' in /in/d0TWc on line 5 2016318-1554.png
Output for 7.0.2
Notice: Use of undefined constant year - assumed 'year' in /in/d0TWc on line 5 Notice: Use of undefined constant mon - assumed 'mon' in /in/d0TWc on line 5 Notice: Use of undefined constant mday - assumed 'mday' in /in/d0TWc on line 5 Notice: Use of undefined constant hours - assumed 'hours' in /in/d0TWc on line 5 Notice: Use of undefined constant minutes - assumed 'minutes' in /in/d0TWc on line 5 2016322-220.png
Output for 7.0.1
Notice: Use of undefined constant year - assumed 'year' in /in/d0TWc on line 5 Notice: Use of undefined constant mon - assumed 'mon' in /in/d0TWc on line 5 Notice: Use of undefined constant mday - assumed 'mday' in /in/d0TWc on line 5 Notice: Use of undefined constant hours - assumed 'hours' in /in/d0TWc on line 5 Notice: Use of undefined constant minutes - assumed 'minutes' in /in/d0TWc on line 5 2016324-223.png
Output for 7.0.0
Notice: Use of undefined constant year - assumed 'year' in /in/d0TWc on line 5 Notice: Use of undefined constant mon - assumed 'mon' in /in/d0TWc on line 5 Notice: Use of undefined constant mday - assumed 'mday' in /in/d0TWc on line 5 Notice: Use of undefined constant hours - assumed 'hours' in /in/d0TWc on line 5 Notice: Use of undefined constant minutes - assumed 'minutes' in /in/d0TWc on line 5 2016327-422.png
Output for 5.6.21
Notice: Use of undefined constant year - assumed 'year' in /in/d0TWc on line 5 Notice: Use of undefined constant mon - assumed 'mon' in /in/d0TWc on line 5 Notice: Use of undefined constant mday - assumed 'mday' in /in/d0TWc on line 5 Notice: Use of undefined constant hours - assumed 'hours' in /in/d0TWc on line 5 Notice: Use of undefined constant minutes - assumed 'minutes' in /in/d0TWc on line 5 201652-1027.png
Output for 5.6.20
Notice: Use of undefined constant year - assumed 'year' in /in/d0TWc on line 5 Notice: Use of undefined constant mon - assumed 'mon' in /in/d0TWc on line 5 Notice: Use of undefined constant mday - assumed 'mday' in /in/d0TWc on line 5 Notice: Use of undefined constant hours - assumed 'hours' in /in/d0TWc on line 5 Notice: Use of undefined constant minutes - assumed 'minutes' in /in/d0TWc on line 5 2016410-248.png
Output for 5.6.19
Notice: Use of undefined constant year - assumed 'year' in /in/d0TWc on line 5 Notice: Use of undefined constant mon - assumed 'mon' in /in/d0TWc on line 5 Notice: Use of undefined constant mday - assumed 'mday' in /in/d0TWc on line 5 Notice: Use of undefined constant hours - assumed 'hours' in /in/d0TWc on line 5 Notice: Use of undefined constant minutes - assumed 'minutes' in /in/d0TWc on line 5 201637-2258.png
Output for 5.6.18
Notice: Use of undefined constant year - assumed 'year' in /in/d0TWc on line 5 Notice: Use of undefined constant mon - assumed 'mon' in /in/d0TWc on line 5 Notice: Use of undefined constant mday - assumed 'mday' in /in/d0TWc on line 5 Notice: Use of undefined constant hours - assumed 'hours' in /in/d0TWc on line 5 Notice: Use of undefined constant minutes - assumed 'minutes' in /in/d0TWc on line 5 2016315-751.png
Output for 5.6.17
Notice: Use of undefined constant year - assumed 'year' in /in/d0TWc on line 5 Notice: Use of undefined constant mon - assumed 'mon' in /in/d0TWc on line 5 Notice: Use of undefined constant mday - assumed 'mday' in /in/d0TWc on line 5 Notice: Use of undefined constant hours - assumed 'hours' in /in/d0TWc on line 5 Notice: Use of undefined constant minutes - assumed 'minutes' in /in/d0TWc on line 5 2016319-1948.png
Output for 5.6.16
Notice: Use of undefined constant year - assumed 'year' in /in/d0TWc on line 5 Notice: Use of undefined constant mon - assumed 'mon' in /in/d0TWc on line 5 Notice: Use of undefined constant mday - assumed 'mday' in /in/d0TWc on line 5 Notice: Use of undefined constant hours - assumed 'hours' in /in/d0TWc on line 5 Notice: Use of undefined constant minutes - assumed 'minutes' in /in/d0TWc on line 5 2016328-512.png
Output for 5.6.15
Notice: Use of undefined constant year - assumed 'year' in /in/d0TWc on line 5 Notice: Use of undefined constant mon - assumed 'mon' in /in/d0TWc on line 5 Notice: Use of undefined constant mday - assumed 'mday' in /in/d0TWc on line 5 Notice: Use of undefined constant hours - assumed 'hours' in /in/d0TWc on line 5 Notice: Use of undefined constant minutes - assumed 'minutes' in /in/d0TWc on line 5 2016329-64.png
Output for 5.6.14
Notice: Use of undefined constant year - assumed 'year' in /in/d0TWc on line 5 Notice: Use of undefined constant mon - assumed 'mon' in /in/d0TWc on line 5 Notice: Use of undefined constant mday - assumed 'mday' in /in/d0TWc on line 5 Notice: Use of undefined constant hours - assumed 'hours' in /in/d0TWc on line 5 Notice: Use of undefined constant minutes - assumed 'minutes' in /in/d0TWc on line 5 201642-86.png
Output for 5.6.13
Notice: Use of undefined constant year - assumed 'year' in /in/d0TWc on line 5 Notice: Use of undefined constant mon - assumed 'mon' in /in/d0TWc on line 5 Notice: Use of undefined constant mday - assumed 'mday' in /in/d0TWc on line 5 Notice: Use of undefined constant hours - assumed 'hours' in /in/d0TWc on line 5 Notice: Use of undefined constant minutes - assumed 'minutes' in /in/d0TWc on line 5 2016415-1217.png
Output for 5.6.12
Notice: Use of undefined constant year - assumed 'year' in /in/d0TWc on line 5 Notice: Use of undefined constant mon - assumed 'mon' in /in/d0TWc on line 5 Notice: Use of undefined constant mday - assumed 'mday' in /in/d0TWc on line 5 Notice: Use of undefined constant hours - assumed 'hours' in /in/d0TWc on line 5 Notice: Use of undefined constant minutes - assumed 'minutes' in /in/d0TWc on line 5 2016420-238.png
Output for 5.6.11
Notice: Use of undefined constant year - assumed 'year' in /in/d0TWc on line 5 Notice: Use of undefined constant mon - assumed 'mon' in /in/d0TWc on line 5 Notice: Use of undefined constant mday - assumed 'mday' in /in/d0TWc on line 5 Notice: Use of undefined constant hours - assumed 'hours' in /in/d0TWc on line 5 Notice: Use of undefined constant minutes - assumed 'minutes' in /in/d0TWc on line 5 2016423-913.png
Output for 5.6.10
Notice: Use of undefined constant year - assumed 'year' in /in/d0TWc on line 5 Notice: Use of undefined constant mon - assumed 'mon' in /in/d0TWc on line 5 Notice: Use of undefined constant mday - assumed 'mday' in /in/d0TWc on line 5 Notice: Use of undefined constant hours - assumed 'hours' in /in/d0TWc on line 5 Notice: Use of undefined constant minutes - assumed 'minutes' in /in/d0TWc on line 5 2016425-116.png
Output for 5.6.9
Notice: Use of undefined constant year - assumed 'year' in /in/d0TWc on line 5 Notice: Use of undefined constant mon - assumed 'mon' in /in/d0TWc on line 5 Notice: Use of undefined constant mday - assumed 'mday' in /in/d0TWc on line 5 Notice: Use of undefined constant hours - assumed 'hours' in /in/d0TWc on line 5 Notice: Use of undefined constant minutes - assumed 'minutes' in /in/d0TWc on line 5 2016427-1611.png
Output for 5.6.8
Notice: Use of undefined constant year - assumed 'year' in /in/d0TWc on line 5 Notice: Use of undefined constant mon - assumed 'mon' in /in/d0TWc on line 5 Notice: Use of undefined constant mday - assumed 'mday' in /in/d0TWc on line 5 Notice: Use of undefined constant hours - assumed 'hours' in /in/d0TWc on line 5 Notice: Use of undefined constant minutes - assumed 'minutes' in /in/d0TWc on line 5 2016430-048.png
Output for 5.5.35
Notice: Use of undefined constant year - assumed 'year' in /in/d0TWc on line 5 Notice: Use of undefined constant mon - assumed 'mon' in /in/d0TWc on line 5 Notice: Use of undefined constant mday - assumed 'mday' in /in/d0TWc on line 5 Notice: Use of undefined constant hours - assumed 'hours' in /in/d0TWc on line 5 Notice: Use of undefined constant minutes - assumed 'minutes' in /in/d0TWc on line 5 2016522-155.png
Output for 5.5.34
Notice: Use of undefined constant year - assumed 'year' in /in/d0TWc on line 5 Notice: Use of undefined constant mon - assumed 'mon' in /in/d0TWc on line 5 Notice: Use of undefined constant mday - assumed 'mday' in /in/d0TWc on line 5 Notice: Use of undefined constant hours - assumed 'hours' in /in/d0TWc on line 5 Notice: Use of undefined constant minutes - assumed 'minutes' in /in/d0TWc on line 5 2016411-53.png
Output for 5.5.33
Notice: Use of undefined constant year - assumed 'year' in /in/d0TWc on line 5 Notice: Use of undefined constant mon - assumed 'mon' in /in/d0TWc on line 5 Notice: Use of undefined constant mday - assumed 'mday' in /in/d0TWc on line 5 Notice: Use of undefined constant hours - assumed 'hours' in /in/d0TWc on line 5 Notice: Use of undefined constant minutes - assumed 'minutes' in /in/d0TWc on line 5 201639-24.png
Output for 5.5.32
Notice: Use of undefined constant year - assumed 'year' in /in/d0TWc on line 5 Notice: Use of undefined constant mon - assumed 'mon' in /in/d0TWc on line 5 Notice: Use of undefined constant mday - assumed 'mday' in /in/d0TWc on line 5 Notice: Use of undefined constant hours - assumed 'hours' in /in/d0TWc on line 5 Notice: Use of undefined constant minutes - assumed 'minutes' in /in/d0TWc on line 5 2016317-1120.png
Output for 5.5.31
Notice: Use of undefined constant year - assumed 'year' in /in/d0TWc on line 5 Notice: Use of undefined constant mon - assumed 'mon' in /in/d0TWc on line 5 Notice: Use of undefined constant mday - assumed 'mday' in /in/d0TWc on line 5 Notice: Use of undefined constant hours - assumed 'hours' in /in/d0TWc on line 5 Notice: Use of undefined constant minutes - assumed 'minutes' in /in/d0TWc on line 5 2016320-2233.png
Output for 5.5.30
Notice: Use of undefined constant year - assumed 'year' in /in/d0TWc on line 5 Notice: Use of undefined constant mon - assumed 'mon' in /in/d0TWc on line 5 Notice: Use of undefined constant mday - assumed 'mday' in /in/d0TWc on line 5 Notice: Use of undefined constant hours - assumed 'hours' in /in/d0TWc on line 5 Notice: Use of undefined constant minutes - assumed 'minutes' in /in/d0TWc on line 5 201641-757.png
Output for 5.5.29
Notice: Use of undefined constant year - assumed 'year' in /in/d0TWc on line 5 Notice: Use of undefined constant mon - assumed 'mon' in /in/d0TWc on line 5 Notice: Use of undefined constant mday - assumed 'mday' in /in/d0TWc on line 5 Notice: Use of undefined constant hours - assumed 'hours' in /in/d0TWc on line 5 Notice: Use of undefined constant minutes - assumed 'minutes' in /in/d0TWc on line 5 2016417-237.png
Output for 5.5.28
Notice: Use of undefined constant year - assumed 'year' in /in/d0TWc on line 5 Notice: Use of undefined constant mon - assumed 'mon' in /in/d0TWc on line 5 Notice: Use of undefined constant mday - assumed 'mday' in /in/d0TWc on line 5 Notice: Use of undefined constant hours - assumed 'hours' in /in/d0TWc on line 5 Notice: Use of undefined constant minutes - assumed 'minutes' in /in/d0TWc on line 5 2016421-549.png
Output for 5.5.27
Notice: Use of undefined constant year - assumed 'year' in /in/d0TWc on line 5 Notice: Use of undefined constant mon - assumed 'mon' in /in/d0TWc on line 5 Notice: Use of undefined constant mday - assumed 'mday' in /in/d0TWc on line 5 Notice: Use of undefined constant hours - assumed 'hours' in /in/d0TWc on line 5 Notice: Use of undefined constant minutes - assumed 'minutes' in /in/d0TWc on line 5 2016422-750.png
Output for 5.5.26
Notice: Use of undefined constant year - assumed 'year' in /in/d0TWc on line 5 Notice: Use of undefined constant mon - assumed 'mon' in /in/d0TWc on line 5 Notice: Use of undefined constant mday - assumed 'mday' in /in/d0TWc on line 5 Notice: Use of undefined constant hours - assumed 'hours' in /in/d0TWc on line 5 Notice: Use of undefined constant minutes - assumed 'minutes' in /in/d0TWc on line 5 2016426-1344.png
Output for 5.5.25
Notice: Use of undefined constant year - assumed 'year' in /in/d0TWc on line 5 Notice: Use of undefined constant mon - assumed 'mon' in /in/d0TWc on line 5 Notice: Use of undefined constant mday - assumed 'mday' in /in/d0TWc on line 5 Notice: Use of undefined constant hours - assumed 'hours' in /in/d0TWc on line 5 Notice: Use of undefined constant minutes - assumed 'minutes' in /in/d0TWc on line 5 2016428-2019.png
Output for 5.5.24
Notice: Use of undefined constant year - assumed 'year' in /in/d0TWc on line 5 Notice: Use of undefined constant mon - assumed 'mon' in /in/d0TWc on line 5 Notice: Use of undefined constant mday - assumed 'mday' in /in/d0TWc on line 5 Notice: Use of undefined constant hours - assumed 'hours' in /in/d0TWc on line 5 Notice: Use of undefined constant minutes - assumed 'minutes' in /in/d0TWc on line 5 2016524-320.png
Output for 4.3.0, 5.4.45
Notice: Use of undefined constant year - assumed 'year' in /in/d0TWc on line 5 Notice: Use of undefined constant mon - assumed 'mon' in /in/d0TWc on line 5 Notice: Use of undefined constant mday - assumed 'mday' in /in/d0TWc on line 5 Notice: Use of undefined constant hours - assumed 'hours' in /in/d0TWc on line 5 Notice: Use of undefined constant minutes - assumed 'minutes' in /in/d0TWc on line 5 201596-1437.png