3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php date_default_timezone_set('Europe/London'); echo "<date>"; echo "|| This is a TEST || Oxygen8 - Haiti Appeal 2013 || Total Raised so far : £0 :( || "; /* print gmdate("D H:i:s",time()); */ $datetime1 = new DateTime('now'); $datetime2 = new DateTime('tomorrow 09:00:00'); $interval = date_diff($datetime1,$datetime2); echo $interval->format('%H:%i:%s to go!'); echo "</date>"; /* $d1 = new DateTime(); $d2 = new DateTime('21:00:00'); $d3 = new DateTime('09:00:00'); $d4=$d2->diff($d1); $d5=$d3->diff($d1); echo $d4->format(' %h:%i:%s is 21:00?'); echo $d5->format(' %h:%i:%s is 9:00?'); */ ?>
Output for 5.6.28, 7.0.12 - 7.1.0
<date>|| This is a TEST || Oxygen8 - Haiti Appeal 2013 || Total Raised so far : £0 :( || 18:0:44 to go!</date>
Output for 7.0.6
<date>|| This is a TEST || Oxygen8 - Haiti Appeal 2013 || Total Raised so far : £0 :( || 01:57:44 to go!</date>
Output for 7.0.5
<date>|| This is a TEST || Oxygen8 - Haiti Appeal 2013 || Total Raised so far : £0 :( || 13:0:33 to go!</date>
Output for 7.0.4
<date>|| This is a TEST || Oxygen8 - Haiti Appeal 2013 || Total Raised so far : £0 :( || 02:44:42 to go!</date>
Output for 7.0.3
<date>|| This is a TEST || Oxygen8 - Haiti Appeal 2013 || Total Raised so far : £0 :( || 02:12:41 to go!</date>
Output for 7.0.2
<date>|| This is a TEST || Oxygen8 - Haiti Appeal 2013 || Total Raised so far : £0 :( || 20:27:24 to go!</date>
Output for 7.0.1
<date>|| This is a TEST || Oxygen8 - Haiti Appeal 2013 || Total Raised so far : £0 :( || 15:25:30 to go!</date>
Output for 7.0.0
<date>|| This is a TEST || Oxygen8 - Haiti Appeal 2013 || Total Raised so far : £0 :( || 12:44:54 to go!</date>
Output for hhvm-3.12.0
<date>|| This is a TEST || Oxygen8 - Haiti Appeal 2013 || Total Raised so far : £0 :( || 19:33:7 to go!</date>
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.6.21
<date>|| This is a TEST || Oxygen8 - Haiti Appeal 2013 || Total Raised so far : £0 :( || 06:38:29 to go!</date>
Output for 5.6.20
<date>|| This is a TEST || Oxygen8 - Haiti Appeal 2013 || Total Raised so far : £0 :( || 14:10:44 to go!</date>
Output for 5.6.19
<date>|| This is a TEST || Oxygen8 - Haiti Appeal 2013 || Total Raised so far : £0 :( || 18:38:57 to go!</date>
Output for 5.6.18
<date>|| This is a TEST || Oxygen8 - Haiti Appeal 2013 || Total Raised so far : £0 :( || 10:53:38 to go!</date>
Output for 5.6.17
<date>|| This is a TEST || Oxygen8 - Haiti Appeal 2013 || Total Raised so far : £0 :( || 21:54:13 to go!</date>
Output for 5.6.16
<date>|| This is a TEST || Oxygen8 - Haiti Appeal 2013 || Total Raised so far : £0 :( || 11:59:37 to go!</date>
Output for 5.6.15
<date>|| This is a TEST || Oxygen8 - Haiti Appeal 2013 || Total Raised so far : £0 :( || 11:6:23 to go!</date>
Output for 5.6.14
<date>|| This is a TEST || Oxygen8 - Haiti Appeal 2013 || Total Raised so far : £0 :( || 08:31:52 to go!</date>
Output for 5.6.13
<date>|| This is a TEST || Oxygen8 - Haiti Appeal 2013 || Total Raised so far : £0 :( || 04:36:25 to go!</date>
Output for 5.6.12
<date>|| This is a TEST || Oxygen8 - Haiti Appeal 2013 || Total Raised so far : £0 :( || 15:0:17 to go!</date>
Output for 5.6.11
<date>|| This is a TEST || Oxygen8 - Haiti Appeal 2013 || Total Raised so far : £0 :( || 08:1:4 to go!</date>
Output for 5.6.10
<date>|| This is a TEST || Oxygen8 - Haiti Appeal 2013 || Total Raised so far : £0 :( || 06:9:51 to go!</date>
Output for 5.6.9
<date>|| This is a TEST || Oxygen8 - Haiti Appeal 2013 || Total Raised so far : £0 :( || 01:12:27 to go!</date>
Output for 5.6.8
<date>|| This is a TEST || Oxygen8 - Haiti Appeal 2013 || Total Raised so far : £0 :( || 17:12:24 to go!</date>
Output for 5.6.7
<date>|| This is a TEST || Oxygen8 - Haiti Appeal 2013 || Total Raised so far : £0 :( || 23:7:14 to go!</date>
Output for 5.5.35
<date>|| This is a TEST || Oxygen8 - Haiti Appeal 2013 || Total Raised so far : £0 :( || 02:56:59 to go!</date>
Output for 5.5.34
<date>|| This is a TEST || Oxygen8 - Haiti Appeal 2013 || Total Raised so far : £0 :( || 11:44:6 to go!</date>
Output for 5.5.33
<date>|| This is a TEST || Oxygen8 - Haiti Appeal 2013 || Total Raised so far : £0 :( || 15:48:54 to go!</date>
Output for 5.5.32
<date>|| This is a TEST || Oxygen8 - Haiti Appeal 2013 || Total Raised so far : £0 :( || 09:1:43 to go!</date>
Output for 5.5.31
<date>|| This is a TEST || Oxygen8 - Haiti Appeal 2013 || Total Raised so far : £0 :( || 19:6:58 to go!</date>
Output for 5.5.30
<date>|| This is a TEST || Oxygen8 - Haiti Appeal 2013 || Total Raised so far : £0 :( || 08:58:1 to go!</date>
Output for 5.5.29
<date>|| This is a TEST || Oxygen8 - Haiti Appeal 2013 || Total Raised so far : £0 :( || 14:31:25 to go!</date>
Output for 5.5.28
<date>|| This is a TEST || Oxygen8 - Haiti Appeal 2013 || Total Raised so far : £0 :( || 11:54:16 to go!</date>
Output for 5.5.27
<date>|| This is a TEST || Oxygen8 - Haiti Appeal 2013 || Total Raised so far : £0 :( || 09:23:48 to go!</date>
Output for 5.5.26
<date>|| This is a TEST || Oxygen8 - Haiti Appeal 2013 || Total Raised so far : £0 :( || 03:43:56 to go!</date>
Output for 5.5.25
<date>|| This is a TEST || Oxygen8 - Haiti Appeal 2013 || Total Raised so far : £0 :( || 21:40:56 to go!</date>
Output for 5.5.24
<date>|| This is a TEST || Oxygen8 - Haiti Appeal 2013 || Total Raised so far : £0 :( || 14:45:47 to go!</date>
Output for 5.4.45
<date>|| This is a TEST || Oxygen8 - Haiti Appeal 2013 || Total Raised so far : £0 :( || 23:0:1 to go!</date>
Output for 5.4.44
<date>|| This is a TEST || Oxygen8 - Haiti Appeal 2013 || Total Raised so far : £0 :( || 23:0:0 to go!</date>
Output for 5.4.41 - 5.4.43
<date>|| This is a TEST || Oxygen8 - Haiti Appeal 2013 || Total Raised so far : £0 :( || 22:59:59 to go!</date>
Output for 5.4.40
<date>|| This is a TEST || Oxygen8 - Haiti Appeal 2013 || Total Raised so far : £0 :( || 22:59:58 to go!</date>
Output for 5.4.38 - 5.4.39
<date>|| This is a TEST || Oxygen8 - Haiti Appeal 2013 || Total Raised so far : £0 :( || 22:59:57 to go!</date>
Output for 5.4.35 - 5.4.37
<date>|| This is a TEST || Oxygen8 - Haiti Appeal 2013 || Total Raised so far : £0 :( || 22:59:56 to go!</date>
Output for 5.3.29, 5.4.32 - 5.4.34
<date>|| This is a TEST || Oxygen8 - Haiti Appeal 2013 || Total Raised so far : £0 :( || 22:59:55 to go!</date>
Output for 5.4.28 - 5.4.31
<date>|| This is a TEST || Oxygen8 - Haiti Appeal 2013 || Total Raised so far : £0 :( || 22:59:54 to go!</date>
Output for 5.4.23 - 5.4.27
<date>|| This is a TEST || Oxygen8 - Haiti Appeal 2013 || Total Raised so far : £0 :( || 22:59:53 to go!</date>
Output for 5.3.28, 5.4.20 - 5.4.22
<date>|| This is a TEST || Oxygen8 - Haiti Appeal 2013 || Total Raised so far : £0 :( || 22:59:52 to go!</date>
Output for 5.3.27, 5.4.16 - 5.4.19
<date>|| This is a TEST || Oxygen8 - Haiti Appeal 2013 || Total Raised so far : £0 :( || 22:59:51 to go!</date>
Output for 5.3.23 - 5.3.26, 5.4.12 - 5.4.15
<date>|| This is a TEST || Oxygen8 - Haiti Appeal 2013 || Total Raised so far : £0 :( || 22:59:50 to go!</date>
Output for 5.3.19 - 5.3.22, 5.4.9 - 5.4.11
<date>|| This is a TEST || Oxygen8 - Haiti Appeal 2013 || Total Raised so far : £0 :( || 22:59:49 to go!</date>
Output for 5.3.15 - 5.3.18, 5.4.5 - 5.4.8
<date>|| This is a TEST || Oxygen8 - Haiti Appeal 2013 || Total Raised so far : £0 :( || 22:59:48 to go!</date>
Output for 5.3.11 - 5.3.14, 5.4.1 - 5.4.4
<date>|| This is a TEST || Oxygen8 - Haiti Appeal 2013 || Total Raised so far : £0 :( || 22:59:47 to go!</date>
Output for 5.3.5 - 5.3.10, 5.4.0
<date>|| This is a TEST || Oxygen8 - Haiti Appeal 2013 || Total Raised so far : £0 :( || 22:59:46 to go!</date>
Output for 5.3.2 - 5.3.4
<date>|| This is a TEST || Oxygen8 - Haiti Appeal 2013 || Total Raised so far : £0 :( || 22:59:45 to go!</date>
Output for 5.3.0 - 5.3.1
<date>|| This is a TEST || Oxygen8 - Haiti Appeal 2013 || Total Raised so far : £0 :( || 22:59:44 to go!</date>
Output for 5.2.0 - 5.2.17
<date>|| This is a TEST || Oxygen8 - Haiti Appeal 2013 || Total Raised so far : £0 :( || Fatal error: Call to undefined function date_diff() in /in/J1K2X on line 13
Process exited with code 255.
Output for 5.1.0 - 5.1.6
<date>|| This is a TEST || Oxygen8 - Haiti Appeal 2013 || Total Raised so far : £0 :( || Fatal error: Class 'DateTime' not found in /in/J1K2X on line 11
Process exited with code 255.
Output for 5.0.0 - 5.0.5
Fatal error: Call to undefined function date_default_timezone_set() in /in/J1K2X on line 3
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: date_default_timezone_set() in /in/J1K2X on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: date_default_timezone_set() in /in/J1K2X on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: date_default_timezone_set() in /in/J1K2X on line 3