3v4l.org

run code in 300+ PHP versions simultaneously
<?php $birthDate = new DateTime(null); $birthDateNotNull = new DateTime('1989-09-26'); $birthDate1 = new DateTime(null); $birthDateNotNull1 = new DateTime('2015-12-07 20:40:25'); echo serialize($birthDate); echo PHP_EOL; echo serialize($birthDateNotNull); echo PHP_EOL; echo PHP_EOL; echo PHP_EOL; echo serialize($birthDate1); echo PHP_EOL; echo serialize($birthDateNotNull1);
Output for git.master
Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in /in/TASAL on line 3 Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in /in/TASAL on line 6 O:8:"DateTime":3:{s:4:"date";s:26:"2017-06-28 12:16:17.004961";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";} O:8:"DateTime":3:{s:4:"date";s:26:"1989-09-26 00:00:00.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";} O:8:"DateTime":3:{s:4:"date";s:26:"2017-06-28 12:16:17.004983";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";} O:8:"DateTime":3:{s:4:"date";s:26:"2015-12-07 20:40:25.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}
Output for git.master_jit
Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in /in/TASAL on line 3 Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in /in/TASAL on line 6 O:8:"DateTime":3:{s:4:"date";s:26:"2017-06-28 12:16:17.004492";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";} O:8:"DateTime":3:{s:4:"date";s:26:"1989-09-26 00:00:00.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";} O:8:"DateTime":3:{s:4:"date";s:26:"2017-06-28 12:16:17.004510";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";} O:8:"DateTime":3:{s:4:"date";s:26:"2015-12-07 20:40:25.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}
Output for rfc.property-hooks
Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in /in/TASAL on line 3 Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in /in/TASAL on line 6 O:8:"DateTime":3:{s:4:"date";s:26:"2017-06-28 12:16:17.003776";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";} O:8:"DateTime":3:{s:4:"date";s:26:"1989-09-26 00:00:00.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";} O:8:"DateTime":3:{s:4:"date";s:26:"2017-06-28 12:16:17.003788";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";} O:8:"DateTime":3:{s:4:"date";s:26:"2015-12-07 20:40:25.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
58.14 ms | 402 KiB | 8 Q