3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $ar = [ 'sadsad' => NULL, 'sadsadads' => new DateTime ]; var_dump($ar); var_dump((bool) array_sum($ar));
Output for 7.1.0
array(2) { ["sadsad"]=> NULL ["sadsadads"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2014-07-22 11:08:13.004043" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } } bool(false)
Output for 5.6.28, 7.0.14
array(2) { ["sadsad"]=> NULL ["sadsadads"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2014-07-22 11:08:13.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } } bool(false)
Output for 7.0.6
array(2) { ["sadsad"]=> NULL ["sadsadads"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2016-05-03 02:53:31.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } } bool(false)
Output for 7.0.5
array(2) { ["sadsad"]=> NULL ["sadsadads"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-02 16:08:51.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } } bool(false)
Output for 7.0.4
array(2) { ["sadsad"]=> NULL ["sadsadads"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-10 01:43:39.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } } bool(false)
Output for 7.0.3
array(2) { ["sadsad"]=> NULL ["sadsadads"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-18 01:54:45.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } } bool(false)
Output for 7.0.2
array(2) { ["sadsad"]=> NULL ["sadsadads"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-21 12:28:53.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } } bool(false)
Output for 7.0.1
array(2) { ["sadsad"]=> NULL ["sadsadads"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-23 12:41:56.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } } bool(false)
Output for 7.0.0
array(2) { ["sadsad"]=> NULL ["sadsadads"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-26 15:08:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } } bool(false)
Output for hhvm-3.12.0
array(2) { ["sadsad"]=> NULL ["sadsadads"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-27 12:55:53.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } } bool(false)
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.6.21
array(2) { ["sadsad"]=> NULL ["sadsadads"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2016-05-01 21:55:15.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } } bool(false)
Output for 5.6.20
array(2) { ["sadsad"]=> NULL ["sadsadads"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-09 11:20:49.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } } bool(false)
Output for 5.6.19
array(2) { ["sadsad"]=> NULL ["sadsadads"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-07 00:09:14.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } } bool(false)
Output for 5.6.18
array(2) { ["sadsad"]=> NULL ["sadsadads"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-14 12:21:09.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } } bool(false)
Output for 5.6.17
array(2) { ["sadsad"]=> NULL ["sadsadads"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-19 06:22:53.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } } bool(false)
Output for 5.6.16
array(2) { ["sadsad"]=> NULL ["sadsadads"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-27 16:52:15.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } } bool(false)
Output for 5.6.15
array(2) { ["sadsad"]=> NULL ["sadsadads"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-28 17:45:44.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } } bool(false)
Output for 5.6.14
array(2) { ["sadsad"]=> NULL ["sadsadads"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-01 20:22:29.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } } bool(false)
Output for 5.6.13
array(2) { ["sadsad"]=> NULL ["sadsadads"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-15 00:12:07.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } } bool(false)
Output for 5.6.12
array(2) { ["sadsad"]=> NULL ["sadsadads"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-19 13:22:04.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } } bool(false)
Output for 5.6.11
array(2) { ["sadsad"]=> NULL ["sadsadads"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-22 20:38:30.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } } bool(false)
Output for 5.6.10
array(2) { ["sadsad"]=> NULL ["sadsadads"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-24 22:17:56.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } } bool(false)
Output for 5.6.9
array(2) { ["sadsad"]=> NULL ["sadsadads"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-27 03:28:50.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } } bool(false)
Output for 5.6.8
array(2) { ["sadsad"]=> NULL ["sadsadads"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-29 11:05:45.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } } bool(false)
Output for 5.6.7
array(2) { ["sadsad"]=> NULL ["sadsadads"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2016-05-24 22:13:01.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } } bool(false)
Output for 5.5.35
array(2) { ["sadsad"]=> NULL ["sadsadads"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2016-05-22 01:19:22.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } } bool(false)
Output for 5.5.34
array(2) { ["sadsad"]=> NULL ["sadsadads"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-10 17:17:28.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } } bool(false)
Output for 5.5.33
array(2) { ["sadsad"]=> NULL ["sadsadads"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-08 12:34:10.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } } bool(false)
Output for 5.5.32
array(2) { ["sadsad"]=> NULL ["sadsadads"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-16 18:16:24.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } } bool(false)
Output for 5.5.31
array(2) { ["sadsad"]=> NULL ["sadsadads"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-20 09:15:27.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } } bool(false)
Output for 5.5.30
array(2) { ["sadsad"]=> NULL ["sadsadads"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-31 19:46:44.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } } bool(false)
Output for 5.5.29
array(2) { ["sadsad"]=> NULL ["sadsadads"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-16 14:19:16.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } } bool(false)
Output for 5.5.28
array(2) { ["sadsad"]=> NULL ["sadsadads"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-20 16:39:06.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } } bool(false)
Output for 5.5.27
array(2) { ["sadsad"]=> NULL ["sadsadads"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-21 19:08:47.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } } bool(false)
Output for 5.5.26
array(2) { ["sadsad"]=> NULL ["sadsadads"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-26 00:45:16.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } } bool(false)
Output for 5.5.25
array(2) { ["sadsad"]=> NULL ["sadsadads"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-28 06:45:33.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } } bool(false)
Output for 5.5.24
array(2) { ["sadsad"]=> NULL ["sadsadads"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-30 14:13:44.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } } bool(false)
Output for 5.4.45
array(2) { ["sadsad"]=> NULL ["sadsadads"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-21 11:09:44.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } } bool(false)
Output for 5.4.44
array(2) { ["sadsad"]=> NULL ["sadsadads"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-21 11:09:40.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } } bool(false)
Output for 5.4.43
array(2) { ["sadsad"]=> NULL ["sadsadads"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-21 04:08:27.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } } bool(false)
Output for 5.4.42
array(2) { ["sadsad"]=> NULL ["sadsadads"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-21 04:07:51.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } } bool(false)
Output for 5.4.41
array(2) { ["sadsad"]=> NULL ["sadsadads"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-21 04:06:51.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } } bool(false)
Output for 5.4.40
array(2) { ["sadsad"]=> NULL ["sadsadads"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-21 04:05:52.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } } bool(false)
Output for 5.4.39
array(2) { ["sadsad"]=> NULL ["sadsadads"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-21 04:05:14.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } } bool(false)
Output for 5.4.38
array(2) { ["sadsad"]=> NULL ["sadsadads"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2015-03-05 06:27:49.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } } bool(false)
Output for 5.4.37
array(2) { ["sadsad"]=> NULL ["sadsadads"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2015-03-05 06:27:44.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } } bool(false)
Output for 5.4.34 - 5.4.36
array(2) { ["sadsad"]=> NULL ["sadsadads"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2015-03-05 06:27:43.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } } bool(false)
Output for 5.4.32
array(2) { ["sadsad"]=> NULL ["sadsadads"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2014-09-14 00:51:09.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } } bool(false)
Output for 5.4.31
array(2) { ["sadsad"]=> NULL ["sadsadads"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2014-09-14 00:51:08.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } } bool(false)
Output for 5.4.30
array(2) { ["sadsad"]=> NULL ["sadsadads"]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2014-07-22 11:08:17.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } } bool(false)
Output for 5.4.21 - 5.4.29
array(2) { ["sadsad"]=> NULL ["sadsadads"]=> object(DateTime)#1 (3) { ["date"]=> string(19) "2014-07-22 11:08:17" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } } bool(false)
Output for 5.4.0 - 5.4.20
array(2) { ["sadsad"]=> NULL ["sadsadads"]=> object(DateTime)#1 (3) { ["date"]=> string(19) "2014-07-22 11:08:18" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } } bool(false)
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/mbYit on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected '[' in /in/mbYit on line 4
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/mbYit on line 4
Process exited with code 255.