3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dt = new DateTime('now', new DateTimeZone('Europe/Madrid')); var_dump($dt, $dt->getTimestamp()); $dt->setTimezone(new DateTimeZone('America/Bogota')); var_dump($dt, $dt->getTimestamp());
Output for git.master
object(DateTime)#1 (3) { ["date"]=> string(26) "2014-07-08 16:30:18.003928" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/Madrid" } int(1404829818) object(DateTime)#1 (3) { ["date"]=> string(26) "2014-07-08 09:30:18.003928" ["timezone_type"]=> int(3) ["timezone"]=> string(14) "America/Bogota" } int(1404829818)
Output for git.master_jit
object(DateTime)#1 (3) { ["date"]=> string(26) "2014-07-08 16:30:18.003927" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/Madrid" } int(1404829818) object(DateTime)#1 (3) { ["date"]=> string(26) "2014-07-08 09:30:18.003927" ["timezone_type"]=> int(3) ["timezone"]=> string(14) "America/Bogota" } int(1404829818)
Output for rfc.property-hooks
object(DateTime)#1 (3) { ["date"]=> string(26) "2014-07-08 16:30:18.003846" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/Madrid" } int(1404829818) object(DateTime)#1 (3) { ["date"]=> string(26) "2014-07-08 09:30:18.003846" ["timezone_type"]=> int(3) ["timezone"]=> string(14) "America/Bogota" } int(1404829818)

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