3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo(new DateTime('today'))->format('U');
based on S4YXc
Output for 5.4.0 - 5.4.32, 5.6.28, 7.0.14 - 7.1.0
1411509600
Output for 7.0.6
1462226400
Output for 5.6.14, 7.0.5
1459548000
Output for 7.0.4
1457564400
Output for 7.0.3
1458255600
Output for 7.0.2
1458601200
Output for 7.0.1
1458687600
Output for 7.0.0
1458946800
Output for hhvm-3.12.0
1457737200
Output for hhvm-3.10.0
1459288800
Output for 5.6.21
1462140000
Output for 5.6.20
1460152800
Output for 5.6.19
1457305200
Output for 5.6.18
1457996400
Output for 5.6.17
1458342000
Output for 5.6.16
1459116000
Output for 5.6.15
1459202400
Output for 5.6.13
1460671200
Output for 5.6.12
1461016800
Output for 5.6.11
1461362400
Output for 5.6.10
1461535200
Output for 5.6.9
1461708000
Output for 5.6.8
1461880800
Output for 5.5.35
1463868000
Output for 5.5.34
1460325600
Output for 5.5.33
1457391600
Output for 5.5.32
1458169200
Output for 5.5.31
1458428400
Output for 5.5.30
1459461600
Output for 5.5.29
1460757600
Output for 5.5.28
1461189600
Output for 5.5.27
1461276000
Output for 5.5.26
1461621600
Output for 5.5.25
1461794400
Output for 5.5.24
1464040800
Output for 5.4.44 - 5.4.45
1442786400
Output for 5.4.39 - 5.4.43
1438293600
Output for 5.4.34 - 5.4.38
1426374000
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.29
Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' in /in/6J7ek on line 2
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
Parse error: parse error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' in /in/6J7ek on line 2
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `','' or `';'' in /in/6J7ek on line 2
Process exited with code 255.