3v4l.org

run code in 300+ PHP versions simultaneously
<?php $timezone_string1 = 'America/Regina'; $timezone_string2 = 'Europe/Zurich'; $summer = '2012-06-01 00:00:00'; $winter = '2012-12-01 00:00:00'; $format = 'Y-m-d H:i:s T P e'; echo "Summer: $summer\n"; $timezone_object = timezone_open( $timezone_string1 ); $date_object_summer = date_create( $summer, $timezone_object ); var_dump( date_format( $date_object_summer, $format ) ); $timezone_object = timezone_open( $timezone_string2 ); $date_object_summer = date_create( $summer, $timezone_object ); var_dump( date_format( $date_object_summer, $format ) ); echo "\nWinter: $winter\n"; $timezone_object = timezone_open( $timezone_string1 ); $date_object_winter = date_create( $winter, $timezone_object ); var_dump( date_format( $date_object_winter, $format ) ); $timezone_object = timezone_open( $timezone_string2 ); $date_object_winter = date_create( $winter, $timezone_object ); var_dump( date_format( $date_object_winter, $format ) );
Output for git.master, git.master_jit, rfc.property-hooks
Summer: 2012-06-01 00:00:00 string(45) "2012-06-01 00:00:00 CST -06:00 America/Regina" string(45) "2012-06-01 00:00:00 CEST +02:00 Europe/Zurich" Winter: 2012-12-01 00:00:00 string(45) "2012-12-01 00:00:00 CST -06:00 America/Regina" string(44) "2012-12-01 00:00:00 CET +01:00 Europe/Zurich"

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:
31.03 ms | 406 KiB | 5 Q