3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo (new DateTime('today'))->getTimestamp();
Output for 5.6.28, 7.0.12 - 7.1.0
1440453600
Output for 7.0.6
1463781600
Output for 5.6.14, 7.0.5
1460584800
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
1459033200
Output for 5.6.21
1462140000
Output for 5.6.20
1460239200
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
1461103200
Output for 5.6.11
1461448800
Output for 5.6.10
1461535200
Output for 5.6.9
1461794400
Output for 5.6.8
1461967200
Output for 5.5.35
1463954400
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
1460844000
Output for 5.5.28
1461189600
Output for 5.5.27
1461276000
Output for 5.5.26
1461621600
Output for 5.5.25
1461880800
Output for 5.5.24
1464040800
Output for 5.4.0 - 5.4.45
1455836400
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/jUg2P on line 3
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/jUg2P on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `','' or `';'' in /in/jUg2P on line 3
Process exited with code 255.