3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $date = new DateTime(); echo $date->getTimestamp() . EOL; echo $date->getTimestamp();
Output for 7.2.0 - 7.2.6
Warning: Use of undefined constant EOL - assumed 'EOL' (this will throw an Error in a future version of PHP) in /in/A0701 on line 4 1380121664EOL1380121664
Output for 5.6.28, 7.0.14 - 7.1.20
Notice: Use of undefined constant EOL - assumed 'EOL' in /in/A0701 on line 4 1380121664EOL1380121664
Output for 7.0.6
Notice: Use of undefined constant EOL - assumed 'EOL' in /in/A0701 on line 4 1462260206EOL1462260206
Output for 7.0.5
Notice: Use of undefined constant EOL - assumed 'EOL' in /in/A0701 on line 4 1459628181EOL1459628181
Output for 7.0.4
Notice: Use of undefined constant EOL - assumed 'EOL' in /in/A0701 on line 4 1457595943EOL1457595943
Output for 7.0.3
Notice: Use of undefined constant EOL - assumed 'EOL' in /in/A0701 on line 4 1458289345EOL1458289345
Output for 7.0.2
Notice: Use of undefined constant EOL - assumed 'EOL' in /in/A0701 on line 4 1458656168EOL1458656168
Output for 7.0.1
Notice: Use of undefined constant EOL - assumed 'EOL' in /in/A0701 on line 4 1458759815EOL1458759815
Output for 7.0.0
Notice: Use of undefined constant EOL - assumed 'EOL' in /in/A0701 on line 4 1459024614EOL1459024614
Output for 5.6.21
Notice: Use of undefined constant EOL - assumed 'EOL' in /in/A0701 on line 4 1462157076EOL1462157076
Output for 5.6.20
Notice: Use of undefined constant EOL - assumed 'EOL' in /in/A0701 on line 4 1460229156EOL1460229156
Output for 5.6.19
Notice: Use of undefined constant EOL - assumed 'EOL' in /in/A0701 on line 4 1457366053EOL1457366053
Output for 5.6.18
Notice: Use of undefined constant EOL - assumed 'EOL' in /in/A0701 on line 4 1457999239EOL1457999239
Output for 5.6.17
Notice: Use of undefined constant EOL - assumed 'EOL' in /in/A0701 on line 4 1458391115EOL1458391115
Output for 5.6.16
Notice: Use of undefined constant EOL - assumed 'EOL' in /in/A0701 on line 4 1459113739EOL1459113739
Output for 5.6.15
Notice: Use of undefined constant EOL - assumed 'EOL' in /in/A0701 on line 4 1459203353EOL1459203353
Output for 5.6.14
Notice: Use of undefined constant EOL - assumed 'EOL' in /in/A0701 on line 4 1459558125EOL1459558125
Output for 5.6.13
Notice: Use of undefined constant EOL - assumed 'EOL' in /in/A0701 on line 4 1460695391EOL1460695391
Output for 5.6.12
Notice: Use of undefined constant EOL - assumed 'EOL' in /in/A0701 on line 4 1461090388EOL1461090388
Output for 5.6.11
Notice: Use of undefined constant EOL - assumed 'EOL' in /in/A0701 on line 4 1461375071EOL1461375071
Output for 5.6.10
Notice: Use of undefined constant EOL - assumed 'EOL' in /in/A0701 on line 4 1461554072EOL1461554072
Output for 5.6.9
Notice: Use of undefined constant EOL - assumed 'EOL' in /in/A0701 on line 4 1461744738EOL1461744738
Output for 5.6.8
Notice: Use of undefined constant EOL - assumed 'EOL' in /in/A0701 on line 4 1461946617EOL1461946617
Output for 5.5.35
Notice: Use of undefined constant EOL - assumed 'EOL' in /in/A0701 on line 4 1463898534EOL1463898534
Output for 5.5.34
Notice: Use of undefined constant EOL - assumed 'EOL' in /in/A0701 on line 4 1460323999EOL1460323999
Output for 5.5.33
Notice: Use of undefined constant EOL - assumed 'EOL' in /in/A0701 on line 4 1457463027EOL1457463027
Output for 5.5.32
Notice: Use of undefined constant EOL - assumed 'EOL' in /in/A0701 on line 4 1458178269EOL1458178269
Output for 5.5.31
Notice: Use of undefined constant EOL - assumed 'EOL' in /in/A0701 on line 4 1458487469EOL1458487469
Output for 5.5.30
Notice: Use of undefined constant EOL - assumed 'EOL' in /in/A0701 on line 4 1459470189EOL1459470189
Output for 5.5.29
Notice: Use of undefined constant EOL - assumed 'EOL' in /in/A0701 on line 4 1460832501EOL1460832501
Output for 5.5.28
Notice: Use of undefined constant EOL - assumed 'EOL' in /in/A0701 on line 4 1461187921EOL1461187921
Output for 5.5.27
Notice: Use of undefined constant EOL - assumed 'EOL' in /in/A0701 on line 4 1461283286EOL1461283286
Output for 5.5.26
Notice: Use of undefined constant EOL - assumed 'EOL' in /in/A0701 on line 4 1461649297EOL1461649297
Output for 5.5.25
Notice: Use of undefined constant EOL - assumed 'EOL' in /in/A0701 on line 4 1461844712EOL1461844712
Output for 5.5.24
Notice: Use of undefined constant EOL - assumed 'EOL' in /in/A0701 on line 4 1464030093EOL1464030093
Output for 5.4.45
Notice: Use of undefined constant EOL - assumed 'EOL' in /in/A0701 on line 4 1442519236EOL1442519236
Output for 5.4.44
Notice: Use of undefined constant EOL - assumed 'EOL' in /in/A0701 on line 4 1440750757EOL1440750757
Output for 5.4.43
Notice: Use of undefined constant EOL - assumed 'EOL' in /in/A0701 on line 4 1440750754EOL1440750754
Output for 5.4.42
Notice: Use of undefined constant EOL - assumed 'EOL' in /in/A0701 on line 4 1440750753EOL1440750753
Output for 5.4.41
Notice: Use of undefined constant EOL - assumed 'EOL' in /in/A0701 on line 4 1440750751EOL1440750751
Output for 5.4.39 - 5.4.40
Notice: Use of undefined constant EOL - assumed 'EOL' in /in/A0701 on line 4 1440750748EOL1440750748
Output for 5.4.38
Notice: Use of undefined constant EOL - assumed 'EOL' in /in/A0701 on line 4 1425145302EOL1425145302
Output for 5.4.37
Notice: Use of undefined constant EOL - assumed 'EOL' in /in/A0701 on line 4 1423109388EOL1423109388
Output for 5.4.36
Notice: Use of undefined constant EOL - assumed 'EOL' in /in/A0701 on line 4 1423109387EOL1423109387
Output for 5.4.35
Notice: Use of undefined constant EOL - assumed 'EOL' in /in/A0701 on line 4 1416084185EOL1416084185
Output for 5.4.34
Notice: Use of undefined constant EOL - assumed 'EOL' in /in/A0701 on line 4 1416084184EOL1416084184
Output for 5.4.32
Notice: Use of undefined constant EOL - assumed 'EOL' in /in/A0701 on line 4 1409659572EOL1409659572
Output for 5.4.31
Notice: Use of undefined constant EOL - assumed 'EOL' in /in/A0701 on line 4 1409659565EOL1409659565
Output for 5.3.29, 5.4.30
Notice: Use of undefined constant EOL - assumed 'EOL' in /in/A0701 on line 4 1409659561EOL1409659561
Output for 5.4.28 - 5.4.29
Notice: Use of undefined constant EOL - assumed 'EOL' in /in/A0701 on line 4 1409659560EOL1409659560
Output for 5.4.26 - 5.4.27
Notice: Use of undefined constant EOL - assumed 'EOL' in /in/A0701 on line 4 1409659569EOL1409659569
Output for 5.4.25
Notice: Use of undefined constant EOL - assumed 'EOL' in /in/A0701 on line 4 1409659568EOL1409659568
Output for 5.4.24
Notice: Use of undefined constant EOL - assumed 'EOL' in /in/A0701 on line 4 1409659566EOL1409659566
Output for 5.3.28, 5.4.23
Notice: Use of undefined constant EOL - assumed 'EOL' in /in/A0701 on line 4 1409659559EOL1409659559
Output for 5.4.22
Notice: Use of undefined constant EOL - assumed 'EOL' in /in/A0701 on line 4 1409659557EOL1409659557
Output for 5.4.20 - 5.4.21
Notice: Use of undefined constant EOL - assumed 'EOL' in /in/A0701 on line 4 1409659556EOL1409659556
Output for 5.4.15 - 5.4.19
Notice: Use of undefined constant EOL - assumed 'EOL' in /in/A0701 on line 4 1380121665EOL1380121665
Output for 5.4.1 - 5.4.14
Notice: Use of undefined constant EOL - assumed 'EOL' in /in/A0701 on line 4 1380121666EOL1380121666
Output for 5.3.14 - 5.3.27, 5.4.0
Notice: Use of undefined constant EOL - assumed 'EOL' in /in/A0701 on line 4 1380121667EOL1380121667
Output for 5.3.0 - 5.3.13
Notice: Use of undefined constant EOL - assumed 'EOL' in /in/A0701 on line 4 1380121668EOL1380121668
Output for 5.2.0 - 5.2.17
Fatal error: Call to undefined method DateTime::getTimestamp() in /in/A0701 on line 4
Process exited with code 255.
Output for 5.0.0 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/A0701 on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: datetime in /in/A0701 on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: datetime in /in/A0701 on line 3