3v4l.org

run code in 300+ PHP versions simultaneously
<?php $period = new DatePeriod(new DateTime(), new DateInterval('P1D'), new DateTime('+1 day')); $serialized = serialize($period); var_dump(serialize($serialized)); $object = unserialize($serialized); foreach ($object as $a) { echo get_class($a) . "\n"; } var_dump($object);
Output for git.master
string(585) "s:576:"O:10:"DatePeriod":7:{s:5:"start";O:8:"DateTime":3:{s:4:"date";s:26:"2014-05-06 22:30:17.003530";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}s:7:"current";N;s:3:"end";O:8:"DateTime":3:{s:4:"date";s:26:"2014-05-07 22:30:17.003540";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}s:8:"interval";O:12:"DateInterval":10:{s:1:"y";i:0;s:1:"m";i:0;s:1:"d";i:1;s:1:"h";i:0;s:1:"i";i:0;s:1:"s";i:0;s:1:"f";d:0;s:6:"invert";i:0;s:4:"days";b:0;s:11:"from_string";b:0;}s:11:"recurrences";i:1;s:18:"include_start_date";b:1;s:16:"include_end_date";b:0;}";" DateTime object(DatePeriod)#2 (7) { ["start"]=> object(DateTime)#9 (3) { ["date"]=> string(26) "2014-05-06 22:30:17.003530" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ["current"]=> object(DateTime)#3 (3) { ["date"]=> string(26) "2014-05-07 22:30:17.003530" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ["end"]=> object(DateTime)#10 (3) { ["date"]=> string(26) "2014-05-07 22:30:17.003540" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ["interval"]=> object(DateInterval)#11 (10) { ["y"]=> int(0) ["m"]=> int(0) ["d"]=> int(1) ["h"]=> int(0) ["i"]=> int(0) ["s"]=> int(0) ["f"]=> float(0) ["invert"]=> int(0) ["days"]=> bool(false) ["from_string"]=> bool(false) } ["recurrences"]=> int(1) ["include_start_date"]=> bool(true) ["include_end_date"]=> bool(false) }
Output for git.master_jit
string(585) "s:576:"O:10:"DatePeriod":7:{s:5:"start";O:8:"DateTime":3:{s:4:"date";s:26:"2014-05-06 22:30:17.003799";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}s:7:"current";N;s:3:"end";O:8:"DateTime":3:{s:4:"date";s:26:"2014-05-07 22:30:17.003809";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}s:8:"interval";O:12:"DateInterval":10:{s:1:"y";i:0;s:1:"m";i:0;s:1:"d";i:1;s:1:"h";i:0;s:1:"i";i:0;s:1:"s";i:0;s:1:"f";d:0;s:6:"invert";i:0;s:4:"days";b:0;s:11:"from_string";b:0;}s:11:"recurrences";i:1;s:18:"include_start_date";b:1;s:16:"include_end_date";b:0;}";" DateTime object(DatePeriod)#2 (7) { ["start"]=> object(DateTime)#9 (3) { ["date"]=> string(26) "2014-05-06 22:30:17.003799" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ["current"]=> object(DateTime)#3 (3) { ["date"]=> string(26) "2014-05-07 22:30:17.003799" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ["end"]=> object(DateTime)#10 (3) { ["date"]=> string(26) "2014-05-07 22:30:17.003809" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ["interval"]=> object(DateInterval)#11 (10) { ["y"]=> int(0) ["m"]=> int(0) ["d"]=> int(1) ["h"]=> int(0) ["i"]=> int(0) ["s"]=> int(0) ["f"]=> float(0) ["invert"]=> int(0) ["days"]=> bool(false) ["from_string"]=> bool(false) } ["recurrences"]=> int(1) ["include_start_date"]=> bool(true) ["include_end_date"]=> bool(false) }
Output for rfc.property-hooks
string(585) "s:576:"O:10:"DatePeriod":7:{s:5:"start";O:8:"DateTime":3:{s:4:"date";s:26:"2014-05-06 22:30:17.004049";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}s:7:"current";N;s:3:"end";O:8:"DateTime":3:{s:4:"date";s:26:"2014-05-07 22:30:17.004056";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}s:8:"interval";O:12:"DateInterval":10:{s:1:"y";i:0;s:1:"m";i:0;s:1:"d";i:1;s:1:"h";i:0;s:1:"i";i:0;s:1:"s";i:0;s:1:"f";d:0;s:6:"invert";i:0;s:4:"days";b:0;s:11:"from_string";b:0;}s:11:"recurrences";i:1;s:18:"include_start_date";b:1;s:16:"include_end_date";b:0;}";" DateTime object(DatePeriod)#2 (7) { ["start"]=> object(DateTime)#9 (3) { ["date"]=> string(26) "2014-05-06 22:30:17.004049" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ["current"]=> object(DateTime)#3 (3) { ["date"]=> string(26) "2014-05-07 22:30:17.004049" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ["end"]=> object(DateTime)#10 (3) { ["date"]=> string(26) "2014-05-07 22:30:17.004056" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ["interval"]=> object(DateInterval)#11 (10) { ["y"]=> int(0) ["m"]=> int(0) ["d"]=> int(1) ["h"]=> int(0) ["i"]=> int(0) ["s"]=> int(0) ["f"]=> float(0) ["invert"]=> int(0) ["days"]=> bool(false) ["from_string"]=> bool(false) } ["recurrences"]=> int(1) ["include_start_date"]=> bool(true) ["include_end_date"]=> bool(false) }

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:
43.13 ms | 404 KiB | 8 Q