3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dt = new DateTime('now', new \DateTimeZone('UTC')); $dt->modify("+3 days"); $dt = clone $dt; $dt->modify("-6 weeks"); $serial = serialize(array($dt)); var_dump( $serial );
Output for git.master
string(124) "a:1:{i:0;O:8:"DateTime":3:{s:4:"date";s:26:"2015-10-02 09:08:06.003567";s:13:"timezone_type";i:3;s:8:"timezone";s:3:"UTC";}}"
Output for git.master_jit
string(124) "a:1:{i:0;O:8:"DateTime":3:{s:4:"date";s:26:"2015-10-02 09:08:06.003761";s:13:"timezone_type";i:3;s:8:"timezone";s:3:"UTC";}}"
Output for rfc.property-hooks
string(124) "a:1:{i:0;O:8:"DateTime":3:{s:4:"date";s:26:"2015-10-02 09:08:06.003532";s:13:"timezone_type";i:3;s:8:"timezone";s:3:"UTC";}}"

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:
54.69 ms | 401 KiB | 8 Q