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());
based on bRAD7
Output for 7.2.0
1bool(true) trueobject(DateTime)#1 (3) { ["date"]=> string(26) "2016-01-05 11:42:28.004663" ["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:42:28.004330" ["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:42:28.002582" ["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:42:28.012847" ["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:42:28.010613" ["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:42:28.004144" ["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:42:28.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:42.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:54.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:20.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:07.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:21.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:44.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:06.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:15:57.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:51.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:30.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:33.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:41.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:20.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:35.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:06.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:08.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:08.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:07.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:03.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:33:57.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:17.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:06.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:37.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:20.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:55.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:24.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:46.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:54.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:36.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:23.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:37.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:07.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:33.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:42:31.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.43 - 5.4.44
1bool(true) trueobject(DateTime)#1 (3) { ["date"]=> string(26) "2016-01-05 11:42:32.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.40 - 5.4.42
1bool(true) trueobject(DateTime)#1 (3) { ["date"]=> string(26) "2016-01-05 11:42:33.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.37 - 5.4.39
1bool(true) trueobject(DateTime)#1 (3) { ["date"]=> string(26) "2016-01-05 11:42:34.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.34 - 5.4.36
1bool(true) trueobject(DateTime)#1 (3) { ["date"]=> string(26) "2016-01-05 11:42:35.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:42:36.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.3.29, 5.4.27 - 5.4.29
1bool(true) trueobject(DateTime)#1 (3) { ["date"]=> string(19) "2016-01-05 11:42:36" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.3.28, 5.4.23 - 5.4.26
1bool(true) trueobject(DateTime)#1 (3) { ["date"]=> string(19) "2016-01-05 11:42:37" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.18 - 5.4.22
1bool(true) trueobject(DateTime)#1 (3) { ["date"]=> string(19) "2016-01-05 11:42:38" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.3.21 - 5.3.27, 5.4.12 - 5.4.17
1bool(true) trueobject(DateTime)#1 (3) { ["date"]=> string(19) "2016-01-05 11:42:39" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.11
1bool(true) trueobject(DateTime)#1 (3) { ["date"]=> string(19) "2016-01-05 11:42:40" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }