3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function dumpMappedRow($mappedRow) { var_dump([ 'created' => $mappedRow['created']->format(DateTime::ISO8601), 'modified' => $mappedRow['modified']->format(DateTime::ISO8601) ]); } $date = new DateTime(); $mappedRow['created'] = $date; $mappedRow['modified'] = $date; dumpMappedRow($mappedRow); $mappedRows['modified']->add(new DateInterval("1D")); dumpMappedRow($mappedRow);
based on HSViv
Output for 7.0.20 - 7.2.0
array(2) { ["created"]=> string(24) "2015-09-24T21:13:51+0200" ["modified"]=> string(24) "2015-09-24T21:13:51+0200" } Notice: Undefined variable: mappedRows in /in/KjkHD on line 18 Fatal error: Uncaught Error: Call to a member function add() on null in /in/KjkHD:18 Stack trace: #0 {main} thrown in /in/KjkHD on line 18
Process exited with code 255.
Output for 7.0.6
array(2) { ["created"]=> string(24) "2016-05-03T13:30:18+0200" ["modified"]=> string(24) "2016-05-03T13:30:18+0200" } Notice: Undefined variable: mappedRows in /in/KjkHD on line 18 Fatal error: Uncaught Error: Call to a member function add() on null in /in/KjkHD:18 Stack trace: #0 {main} thrown in /in/KjkHD on line 18
Process exited with code 255.
Output for 7.0.5
array(2) { ["created"]=> string(24) "2016-04-03T02:11:35+0200" ["modified"]=> string(24) "2016-04-03T02:11:35+0200" } Notice: Undefined variable: mappedRows in /in/KjkHD on line 18 Fatal error: Uncaught Error: Call to a member function add() on null in /in/KjkHD:18 Stack trace: #0 {main} thrown in /in/KjkHD on line 18
Process exited with code 255.
Output for 7.0.4
array(2) { ["created"]=> string(24) "2016-03-10T12:59:56+0100" ["modified"]=> string(24) "2016-03-10T12:59:56+0100" } Notice: Undefined variable: mappedRows in /in/KjkHD on line 18 Fatal error: Uncaught Error: Call to a member function add() on null in /in/KjkHD:18 Stack trace: #0 {main} thrown in /in/KjkHD on line 18
Process exited with code 255.
Output for 7.0.3
array(2) { ["created"]=> string(24) "2016-03-18T13:50:54+0100" ["modified"]=> string(24) "2016-03-18T13:50:54+0100" } Notice: Undefined variable: mappedRows in /in/KjkHD on line 18 Fatal error: Uncaught Error: Call to a member function add() on null in /in/KjkHD:18 Stack trace: #0 {main} thrown in /in/KjkHD on line 18
Process exited with code 255.
Output for 7.0.2
array(2) { ["created"]=> string(24) "2016-03-22T19:45:24+0100" ["modified"]=> string(24) "2016-03-22T19:45:24+0100" } Notice: Undefined variable: mappedRows in /in/KjkHD on line 18 Fatal error: Uncaught Error: Call to a member function add() on null in /in/KjkHD:18 Stack trace: #0 {main} thrown in /in/KjkHD on line 18
Process exited with code 255.
Output for 7.0.1
array(2) { ["created"]=> string(24) "2016-03-23T23:59:14+0100" ["modified"]=> string(24) "2016-03-23T23:59:14+0100" } Notice: Undefined variable: mappedRows in /in/KjkHD on line 18 Fatal error: Uncaught Error: Call to a member function add() on null in /in/KjkHD:18 Stack trace: #0 {main} thrown in /in/KjkHD on line 18
Process exited with code 255.
Output for 7.0.0
array(2) { ["created"]=> string(24) "2016-03-27T01:36:15+0100" ["modified"]=> string(24) "2016-03-27T01:36:15+0100" } Notice: Undefined variable: mappedRows in /in/KjkHD on line 18 Fatal error: Uncaught Error: Call to a member function add() on null in /in/KjkHD:18 Stack trace: #0 {main} thrown in /in/KjkHD on line 18
Process exited with code 255.
Output for 5.6.28
array(2) { ["created"]=> string(24) "2015-09-24T21:13:51+0200" ["modified"]=> string(24) "2015-09-24T21:13:51+0200" } Notice: Undefined variable: mappedRows in /in/KjkHD on line 18 Fatal error: Call to a member function add() on null in /in/KjkHD on line 18
Process exited with code 255.
Output for 5.6.21
array(2) { ["created"]=> string(24) "2016-05-02T08:41:25+0200" ["modified"]=> string(24) "2016-05-02T08:41:25+0200" } Notice: Undefined variable: mappedRows in /in/KjkHD on line 18 Fatal error: Call to a member function add() on null in /in/KjkHD on line 18
Process exited with code 255.
Output for 5.6.20
array(2) { ["created"]=> string(24) "2016-04-10T01:06:16+0200" ["modified"]=> string(24) "2016-04-10T01:06:16+0200" } Notice: Undefined variable: mappedRows in /in/KjkHD on line 18 Fatal error: Call to a member function add() on null in /in/KjkHD on line 18
Process exited with code 255.
Output for 5.6.19
array(2) { ["created"]=> string(24) "2016-03-07T21:04:45+0100" ["modified"]=> string(24) "2016-03-07T21:04:45+0100" } Notice: Undefined variable: mappedRows in /in/KjkHD on line 18 Fatal error: Call to a member function add() on null in /in/KjkHD on line 18
Process exited with code 255.
Output for 5.6.18
array(2) { ["created"]=> string(24) "2016-03-15T05:47:07+0100" ["modified"]=> string(24) "2016-03-15T05:47:07+0100" } Notice: Undefined variable: mappedRows in /in/KjkHD on line 18 Fatal error: Call to a member function add() on null in /in/KjkHD on line 18
Process exited with code 255.
Output for 5.6.17
array(2) { ["created"]=> string(24) "2016-03-19T17:52:45+0100" ["modified"]=> string(24) "2016-03-19T17:52:45+0100" } Notice: Undefined variable: mappedRows in /in/KjkHD on line 18 Fatal error: Call to a member function add() on null in /in/KjkHD on line 18
Process exited with code 255.
Output for 5.6.16
array(2) { ["created"]=> string(24) "2016-03-28T03:26:34+0200" ["modified"]=> string(24) "2016-03-28T03:26:34+0200" } Notice: Undefined variable: mappedRows in /in/KjkHD on line 18 Fatal error: Call to a member function add() on null in /in/KjkHD on line 18
Process exited with code 255.
Output for 5.6.15
array(2) { ["created"]=> string(24) "2016-03-29T04:21:20+0200" ["modified"]=> string(24) "2016-03-29T04:21:20+0200" } Notice: Undefined variable: mappedRows in /in/KjkHD on line 18 Fatal error: Call to a member function add() on null in /in/KjkHD on line 18
Process exited with code 255.
Output for 5.6.14
array(2) { ["created"]=> string(24) "2016-04-02T06:28:17+0200" ["modified"]=> string(24) "2016-04-02T06:28:17+0200" } Notice: Undefined variable: mappedRows in /in/KjkHD on line 18 Fatal error: Call to a member function add() on null in /in/KjkHD on line 18
Process exited with code 255.
Output for 5.6.13
array(2) { ["created"]=> string(24) "2016-04-15T10:31:03+0200" ["modified"]=> string(24) "2016-04-15T10:31:03+0200" } Notice: Undefined variable: mappedRows in /in/KjkHD on line 18 Fatal error: Call to a member function add() on null in /in/KjkHD on line 18
Process exited with code 255.
Output for 5.6.12
array(2) { ["created"]=> string(24) "2016-04-20T00:44:35+0200" ["modified"]=> string(24) "2016-04-20T00:44:35+0200" } Notice: Undefined variable: mappedRows in /in/KjkHD on line 18 Fatal error: Call to a member function add() on null in /in/KjkHD on line 18
Process exited with code 255.
Output for 5.6.11
array(2) { ["created"]=> string(24) "2016-04-23T07:27:06+0200" ["modified"]=> string(24) "2016-04-23T07:27:06+0200" } Notice: Undefined variable: mappedRows in /in/KjkHD on line 18 Fatal error: Call to a member function add() on null in /in/KjkHD on line 18
Process exited with code 255.
Output for 5.6.10
array(2) { ["created"]=> string(24) "2016-04-25T09:14:47+0200" ["modified"]=> string(24) "2016-04-25T09:14:47+0200" } Notice: Undefined variable: mappedRows in /in/KjkHD on line 18 Fatal error: Call to a member function add() on null in /in/KjkHD on line 18
Process exited with code 255.
Output for 5.6.9
array(2) { ["created"]=> string(24) "2016-04-27T14:20:08+0200" ["modified"]=> string(24) "2016-04-27T14:20:08+0200" } Notice: Undefined variable: mappedRows in /in/KjkHD on line 18 Fatal error: Call to a member function add() on null in /in/KjkHD on line 18
Process exited with code 255.
Output for 5.6.8
array(2) { ["created"]=> string(24) "2016-04-29T22:32:42+0200" ["modified"]=> string(24) "2016-04-29T22:32:42+0200" } Notice: Undefined variable: mappedRows in /in/KjkHD on line 18 Fatal error: Call to a member function add() on null in /in/KjkHD on line 18
Process exited with code 255.
Output for 5.5.35
array(2) { ["created"]=> string(24) "2016-05-22T12:27:52+0200" ["modified"]=> string(24) "2016-05-22T12:27:52+0200" } Notice: Undefined variable: mappedRows in /in/KjkHD on line 18 Fatal error: Call to a member function add() on a non-object in /in/KjkHD on line 18
Process exited with code 255.
Output for 5.5.34
array(2) { ["created"]=> string(24) "2016-04-11T03:23:01+0200" ["modified"]=> string(24) "2016-04-11T03:23:01+0200" } Notice: Undefined variable: mappedRows in /in/KjkHD on line 18 Fatal error: Call to a member function add() on a non-object in /in/KjkHD on line 18
Process exited with code 255.
Output for 5.5.33
array(2) { ["created"]=> string(24) "2016-03-08T23:57:33+0100" ["modified"]=> string(24) "2016-03-08T23:57:33+0100" } Notice: Undefined variable: mappedRows in /in/KjkHD on line 18 Fatal error: Call to a member function add() on a non-object in /in/KjkHD on line 18
Process exited with code 255.
Output for 5.5.32
array(2) { ["created"]=> string(24) "2016-03-17T09:16:19+0100" ["modified"]=> string(24) "2016-03-17T09:16:19+0100" } Notice: Undefined variable: mappedRows in /in/KjkHD on line 18 Fatal error: Call to a member function add() on a non-object in /in/KjkHD on line 18
Process exited with code 255.
Output for 5.5.31
array(2) { ["created"]=> string(24) "2016-03-20T20:35:43+0100" ["modified"]=> string(24) "2016-03-20T20:35:43+0100" } Notice: Undefined variable: mappedRows in /in/KjkHD on line 18 Fatal error: Call to a member function add() on a non-object in /in/KjkHD on line 18
Process exited with code 255.
Output for 5.5.30
array(2) { ["created"]=> string(24) "2016-04-01T06:15:24+0200" ["modified"]=> string(24) "2016-04-01T06:15:24+0200" } Notice: Undefined variable: mappedRows in /in/KjkHD on line 18 Fatal error: Call to a member function add() on a non-object in /in/KjkHD on line 18
Process exited with code 255.
Output for 5.5.29
array(2) { ["created"]=> string(24) "2016-04-17T00:40:47+0200" ["modified"]=> string(24) "2016-04-17T00:40:47+0200" } Notice: Undefined variable: mappedRows in /in/KjkHD on line 18 Fatal error: Call to a member function add() on a non-object in /in/KjkHD on line 18
Process exited with code 255.
Output for 5.5.28
array(2) { ["created"]=> string(24) "2016-04-21T03:57:04+0200" ["modified"]=> string(24) "2016-04-21T03:57:04+0200" } Notice: Undefined variable: mappedRows in /in/KjkHD on line 18 Fatal error: Call to a member function add() on a non-object in /in/KjkHD on line 18
Process exited with code 255.
Output for 5.5.27
array(2) { ["created"]=> string(24) "2016-04-22T06:05:45+0200" ["modified"]=> string(24) "2016-04-22T06:05:45+0200" } Notice: Undefined variable: mappedRows in /in/KjkHD on line 18 Fatal error: Call to a member function add() on a non-object in /in/KjkHD on line 18
Process exited with code 255.
Output for 5.5.26
array(2) { ["created"]=> string(24) "2016-04-26T11:51:40+0200" ["modified"]=> string(24) "2016-04-26T11:51:40+0200" } Notice: Undefined variable: mappedRows in /in/KjkHD on line 18 Fatal error: Call to a member function add() on a non-object in /in/KjkHD on line 18
Process exited with code 255.
Output for 5.5.25
array(2) { ["created"]=> string(24) "2016-04-28T18:16:57+0200" ["modified"]=> string(24) "2016-04-28T18:16:57+0200" } Notice: Undefined variable: mappedRows in /in/KjkHD on line 18 Fatal error: Call to a member function add() on a non-object in /in/KjkHD on line 18
Process exited with code 255.
Output for 5.5.24
array(2) { ["created"]=> string(24) "2016-05-24T01:30:40+0200" ["modified"]=> string(24) "2016-05-24T01:30:40+0200" } Notice: Undefined variable: mappedRows in /in/KjkHD on line 18 Fatal error: Call to a member function add() on a non-object in /in/KjkHD on line 18
Process exited with code 255.
Output for 5.4.41 - 5.4.45
array(2) { ["created"]=> string(24) "2015-09-24T21:14:02+0200" ["modified"]=> string(24) "2015-09-24T21:14:02+0200" } Notice: Undefined variable: mappedRows in /in/KjkHD on line 18 Fatal error: Call to a member function add() on a non-object in /in/KjkHD on line 18
Process exited with code 255.
Output for 5.4.34 - 5.4.40
array(2) { ["created"]=> string(24) "2015-09-24T21:14:03+0200" ["modified"]=> string(24) "2015-09-24T21:14:03+0200" } Notice: Undefined variable: mappedRows in /in/KjkHD on line 18 Fatal error: Call to a member function add() on a non-object in /in/KjkHD on line 18
Process exited with code 255.
Output for 5.4.27 - 5.4.32
array(2) { ["created"]=> string(24) "2015-09-24T21:14:04+0200" ["modified"]=> string(24) "2015-09-24T21:14:04+0200" } Notice: Undefined variable: mappedRows in /in/KjkHD on line 18 Fatal error: Call to a member function add() on a non-object in /in/KjkHD on line 18
Process exited with code 255.
Output for 5.4.21 - 5.4.26
array(2) { ["created"]=> string(24) "2015-09-24T21:14:05+0200" ["modified"]=> string(24) "2015-09-24T21:14:05+0200" } Notice: Undefined variable: mappedRows in /in/KjkHD on line 18 Fatal error: Call to a member function add() on a non-object in /in/KjkHD on line 18
Process exited with code 255.
Output for 5.4.15 - 5.4.20
array(2) { ["created"]=> string(24) "2015-09-24T21:14:06+0200" ["modified"]=> string(24) "2015-09-24T21:14:06+0200" } Notice: Undefined variable: mappedRows in /in/KjkHD on line 18 Fatal error: Call to a member function add() on a non-object in /in/KjkHD on line 18
Process exited with code 255.
Output for 5.4.10 - 5.4.14
array(2) { ["created"]=> string(24) "2015-09-24T21:14:07+0200" ["modified"]=> string(24) "2015-09-24T21:14:07+0200" } Notice: Undefined variable: mappedRows in /in/KjkHD on line 18 Fatal error: Call to a member function add() on a non-object in /in/KjkHD on line 18
Process exited with code 255.
Output for 5.4.8 - 5.4.9
array(2) { ["created"]=> string(24) "2015-09-24T21:14:08+0200" ["modified"]=> string(24) "2015-09-24T21:14:08+0200" } Notice: Undefined variable: mappedRows in /in/KjkHD on line 18 Fatal error: Call to a member function add() on a non-object in /in/KjkHD on line 18
Process exited with code 255.
Output for 5.4.7
array(2) { ["created"]=> string(24) "2015-10-27T02:10:14+0100" ["modified"]=> string(24) "2015-10-27T02:10:14+0100" } Notice: Undefined variable: mappedRows in /in/KjkHD on line 18 Fatal error: Call to a member function add() on a non-object in /in/KjkHD on line 18
Process exited with code 255.
Output for 5.4.6
array(2) { ["created"]=> string(24) "2015-10-27T03:38:26+0100" ["modified"]=> string(24) "2015-10-27T03:38:26+0100" } Notice: Undefined variable: mappedRows in /in/KjkHD on line 18 Fatal error: Call to a member function add() on a non-object in /in/KjkHD on line 18
Process exited with code 255.
Output for 5.4.5
array(2) { ["created"]=> string(24) "2015-10-27T05:08:05+0100" ["modified"]=> string(24) "2015-10-27T05:08:05+0100" } Notice: Undefined variable: mappedRows in /in/KjkHD on line 18 Fatal error: Call to a member function add() on a non-object in /in/KjkHD on line 18
Process exited with code 255.
Output for 5.4.4
array(2) { ["created"]=> string(24) "2015-10-27T06:46:23+0100" ["modified"]=> string(24) "2015-10-27T06:46:23+0100" } Notice: Undefined variable: mappedRows in /in/KjkHD on line 18 Fatal error: Call to a member function add() on a non-object in /in/KjkHD on line 18
Process exited with code 255.
Output for 5.4.3
array(2) { ["created"]=> string(24) "2015-10-27T08:27:46+0100" ["modified"]=> string(24) "2015-10-27T08:27:46+0100" } Notice: Undefined variable: mappedRows in /in/KjkHD on line 18 Fatal error: Call to a member function add() on a non-object in /in/KjkHD on line 18
Process exited with code 255.
Output for 5.4.2
array(2) { ["created"]=> string(24) "2015-10-27T08:33:21+0100" ["modified"]=> string(24) "2015-10-27T08:33:21+0100" } Notice: Undefined variable: mappedRows in /in/KjkHD on line 18 Fatal error: Call to a member function add() on a non-object in /in/KjkHD on line 18
Process exited with code 255.
Output for 5.4.1
array(2) { ["created"]=> string(24) "2015-10-27T10:20:35+0100" ["modified"]=> string(24) "2015-10-27T10:20:35+0100" } Notice: Undefined variable: mappedRows in /in/KjkHD on line 18 Fatal error: Call to a member function add() on a non-object in /in/KjkHD on line 18
Process exited with code 255.
Output for 5.3.18 - 5.3.29
Parse error: syntax error, unexpected '[', expecting ')' in /in/KjkHD on line 5
Process exited with code 255.