3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $month=(new \DateTime())->format('m'); $day=(new \DateTime())->format('d'); $year=(new \DateTime())->format('y'); echo ($month.$day.$year); ?>
based on 3iN8r
Output for 5.4.0 - 5.4.32, 5.6.28, 7.0.7 - 7.1.0
101614
Output for 7.0.6
050216
Output for 7.0.5
040216
Output for 7.0.4
030916
Output for 7.0.3
031716
Output for 7.0.2
032116
Output for 7.0.1
032316
Output for 7.0.0
032616
Output for hhvm-3.12.0
031116
Output for hhvm-3.10.0
032916
Output for 5.6.21
050116
Output for 5.6.20
040916
Output for 5.6.19
030616
Output for 5.6.18
031416
Output for 5.6.17
031916
Output for 5.6.16
032716
Output for 5.6.15
032816
Output for 5.6.14
040116
Output for 5.6.13
041416
Output for 5.6.12
041916
Output for 5.6.11
042216
Output for 5.6.10
042416
Output for 5.6.9
042716
Output for 5.6.8
042916
Output for 5.6.7
052416
Output for 5.5.35
052116
Output for 5.5.34
041016
Output for 5.5.33
030816
Output for 5.5.32
031516
Output for 5.5.31
032016
Output for 5.5.30
033116
Output for 5.5.29
041616
Output for 5.5.28
042016
Output for 5.5.27
042116
Output for 5.5.26
042516
Output for 5.5.25
042816
Output for 5.5.24
043016
Output for 5.4.43 - 5.4.45
092015
Output for 5.4.34 - 5.4.42
070915
Output for 5.3.0 - 5.3.29
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /in/b8CWj on line 1
Process exited with code 255.
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.2.17
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/b8CWj on line 1 Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /in/b8CWj on line 1
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/b8CWj on line 1 Parse error: parse error, unexpected T_OBJECT_OPERATOR in /in/b8CWj on line 1
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/b8CWj on line 1 Parse error: parse error in /in/b8CWj on line 1
Process exited with code 255.