3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo is_bool(1); print_r((bool)true); var_dump(true) ; var_export(true); var_dump( new DateTime('now'));
based on GIp4A
Output for 7.2.0
1bool(true) trueobject(DateTime)#1 (3) { ["date"]=> string(26) "2016-01-05 11:44:19.003676" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.10
1bool(true) trueobject(DateTime)#1 (3) { ["date"]=> string(26) "2016-01-05 11:44:19.003771" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.7
1bool(true) trueobject(DateTime)#1 (3) { ["date"]=> string(26) "2016-01-05 11:44:19.002492" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.6
1bool(true) trueobject(DateTime)#1 (3) { ["date"]=> string(26) "2016-01-05 11:44:19.009157" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.5
1bool(true) trueobject(DateTime)#1 (3) { ["date"]=> string(26) "2016-01-05 11:44:19.011148" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.0
1bool(true) trueobject(DateTime)#1 (3) { ["date"]=> string(26) "2016-01-05 11:44:19.004084" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.28, 7.0.20
1bool(true) trueobject(DateTime)#1 (3) { ["date"]=> string(26) "2016-01-05 11:44:19.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.0.6
1bool(true) trueobject(DateTime)#1 (3) { ["date"]=> string(26) "2016-05-21 13:20:51.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.0.5
1bool(true) trueobject(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-03 09:22:55.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.0.4
1bool(true) trueobject(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-10 21:29:21.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.0.3
1bool(true) trueobject(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-18 22:53:08.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.0.2
1bool(true) trueobject(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-23 05:06:22.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.0.1
1bool(true) trueobject(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-24 08:13:45.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.0.0
1bool(true) trueobject(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-27 10:07:07.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.21
1bool(true) trueobject(DateTime)#1 (3) { ["date"]=> string(26) "2016-05-02 16:16:05.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.20
1bool(true) trueobject(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-10 08:24:52.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.19
1bool(true) trueobject(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-08 05:37:31.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.18
1bool(true) trueobject(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-15 14:34:36.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.17
1bool(true) trueobject(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-20 02:06:42.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.16
1bool(true) trueobject(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-28 10:56:21.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.15
1bool(true) trueobject(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-29 11:45:36.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.14
1bool(true) trueobject(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-14 17:28:07.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.13
1bool(true) trueobject(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-15 18:07:09.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.12
1bool(true) trueobject(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-20 08:36:09.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.11
1bool(true) trueobject(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-24 15:02:17.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.10
1bool(true) trueobject(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-25 17:08:22.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.9
1bool(true) trueobject(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-27 22:34:05.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.8
1bool(true) trueobject(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-30 07:04:27.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.35
1bool(true) trueobject(DateTime)#1 (3) { ["date"]=> string(26) "2016-05-23 02:09:39.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.34
1bool(true) trueobject(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-11 10:38:38.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.33
1bool(true) trueobject(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-09 08:36:21.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.32
1bool(true) trueobject(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-17 18:30:57.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.31
1bool(true) trueobject(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-21 05:15:25.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.30
1bool(true) trueobject(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-01 13:37:47.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.29
1bool(true) trueobject(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-17 08:24:55.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.28
1bool(true) trueobject(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-21 11:54:46.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.27
1bool(true) trueobject(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-22 13:33:32.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.26
1bool(true) trueobject(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-26 19:48:46.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.25
1bool(true) trueobject(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-29 03:14:17.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.24
1bool(true) trueobject(DateTime)#1 (3) { ["date"]=> string(26) "2016-05-24 09:37:38.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.45
1bool(true) trueobject(DateTime)#1 (3) { ["date"]=> string(26) "2016-01-05 11:44:23.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.44
1bool(true) trueobject(DateTime)#1 (3) { ["date"]=> string(26) "2016-01-05 11:44:24.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.42 - 5.4.43
1bool(true) trueobject(DateTime)#1 (3) { ["date"]=> string(26) "2016-01-05 11:44:25.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.40 - 5.4.41
1bool(true) trueobject(DateTime)#1 (3) { ["date"]=> string(26) "2016-01-05 11:44:26.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.39
1bool(true) trueobject(DateTime)#1 (3) { ["date"]=> string(26) "2016-01-05 11:44:27.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.36 - 5.4.38
1bool(true) trueobject(DateTime)#1 (3) { ["date"]=> string(26) "2016-01-05 11:44:28.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.34 - 5.4.35
1bool(true) trueobject(DateTime)#1 (3) { ["date"]=> string(26) "2016-01-05 11:44:29.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.30 - 5.4.32
1bool(true) trueobject(DateTime)#1 (3) { ["date"]=> string(26) "2016-01-05 11:44:30.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.26 - 5.4.29
1bool(true) trueobject(DateTime)#1 (3) { ["date"]=> string(19) "2016-01-05 11:44:31" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.3.28, 5.4.23 - 5.4.25
1bool(true) trueobject(DateTime)#1 (3) { ["date"]=> string(19) "2016-01-05 11:44:32" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.20 - 5.4.22
1bool(true) trueobject(DateTime)#1 (3) { ["date"]=> string(19) "2016-01-05 11:44:33" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.3.27, 5.4.17 - 5.4.19
1bool(true) trueobject(DateTime)#1 (3) { ["date"]=> string(19) "2016-01-05 11:44:34" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.3.23 - 5.3.26, 5.4.13 - 5.4.16
1bool(true) trueobject(DateTime)#1 (3) { ["date"]=> string(19) "2016-01-05 11:44:35" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.3.21 - 5.3.22, 5.4.11 - 5.4.12
1bool(true) trueobject(DateTime)#1 (3) { ["date"]=> string(19) "2016-01-05 11:44:36" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.3.29
1bool(true) trueobject(DateTime)#1 (3) { ["date"]=> string(19) "2016-01-05 11:44:30" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }