3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $timestamp = DateTime::createFromFormat("H:i", "17:45"); echo $timestamp->getTimestamp();
Output for 5.6.28, 7.0.14 - 7.1.0
1407944700
Output for 7.0.6
1463845500
Output for 7.0.5
1459698300
Output for 7.0.4
1457628300
Output for 7.0.3
1458405900
Output for 7.0.2
1458751500
Output for 7.0.1
1458837900
Output for 7.0.0
1459093500
Output for 5.6.21
1462203900
Output for 5.6.20
1460303100
Output for 5.6.19
1457455500
Output for 5.6.18
1458060300
Output for 5.6.17
1458492300
Output for 5.6.16
1459179900
Output for 5.6.15
1459266300
Output for 5.6.14
1460648700
Output for 5.6.13
1460735100
Output for 5.6.12
1461167100
Output for 5.6.11
1461512700
Output for 5.6.10
1461599100
Output for 5.6.9
1461858300
Output for 5.6.8
1462031100
Output for 5.5.35
1464018300
Output for 5.5.34
1460389500
Output for 5.5.33
1457541900
Output for 5.5.32
1458233100
Output for 5.5.31
1458578700
Output for 5.5.30
1459525500
Output for 5.5.29
1460907900
Output for 5.5.28
1461253500
Output for 5.5.27
1461339900
Output for 5.5.26
1461685500
Output for 5.5.25
1461944700
Output for 5.5.24
1464104700
Output for 5.3.0 - 5.4.45
1455813900
Output for 5.2.10 - 5.2.17
Fatal error: Call to undefined method DateTime::createFromFormat() in /in/advn7 on line 2
Process exited with code 255.
Output for 5.2.0 - 5.2.9
Fatal error: Call to undefined method DateTime::createfromformat() in /in/advn7 on line 2
Process exited with code 255.
Output for 5.0.0 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/advn7 on line 2
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Undefined class name 'datetime' in /in/advn7 on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Undefined class name 'datetime' in /in/advn7 on line 2