3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(date_default_timezone_get()); for ($y = 1970; $y <= 2020; $y++) { $dt = DateTime::createFromFormat("Y", $y); $date = $dt->format("Y-m-d H:i:s"); $isL = $dt->format("L"); print "$y :: $date :: $isL\n"; }
Output for git.master, git.master_jit, rfc.property-hooks
string(16) "Europe/Amsterdam" 1970 :: 1970-03-28 11:12:20 :: 0 1971 :: 1971-03-28 11:12:20 :: 0 1972 :: 1972-03-28 11:12:20 :: 1 1973 :: 1973-03-28 11:12:20 :: 0 1974 :: 1974-03-28 11:12:20 :: 0 1975 :: 1975-03-28 11:12:20 :: 0 1976 :: 1976-03-28 11:12:20 :: 1 1977 :: 1977-03-28 11:12:20 :: 0 1978 :: 1978-03-28 11:12:20 :: 0 1979 :: 1979-03-28 11:12:20 :: 0 1980 :: 1980-03-28 11:12:20 :: 1 1981 :: 1981-03-28 11:12:20 :: 0 1982 :: 1982-03-28 11:12:20 :: 0 1983 :: 1983-03-28 11:12:20 :: 0 1984 :: 1984-03-28 11:12:20 :: 1 1985 :: 1985-03-28 11:12:20 :: 0 1986 :: 1986-03-28 11:12:20 :: 0 1987 :: 1987-03-28 11:12:20 :: 0 1988 :: 1988-03-28 11:12:20 :: 1 1989 :: 1989-03-28 11:12:20 :: 0 1990 :: 1990-03-28 11:12:20 :: 0 1991 :: 1991-03-28 11:12:20 :: 0 1992 :: 1992-03-28 11:12:20 :: 1 1993 :: 1993-03-28 11:12:20 :: 0 1994 :: 1994-03-28 11:12:20 :: 0 1995 :: 1995-03-28 11:12:20 :: 0 1996 :: 1996-03-28 11:12:20 :: 1 1997 :: 1997-03-28 11:12:20 :: 0 1998 :: 1998-03-28 11:12:20 :: 0 1999 :: 1999-03-28 11:12:20 :: 0 2000 :: 2000-03-28 11:12:20 :: 1 2001 :: 2001-03-28 11:12:20 :: 0 2002 :: 2002-03-28 11:12:20 :: 0 2003 :: 2003-03-28 11:12:20 :: 0 2004 :: 2004-03-28 11:12:20 :: 1 2005 :: 2005-03-28 11:12:20 :: 0 2006 :: 2006-03-28 11:12:20 :: 0 2007 :: 2007-03-28 11:12:20 :: 0 2008 :: 2008-03-28 11:12:20 :: 1 2009 :: 2009-03-28 11:12:20 :: 0 2010 :: 2010-03-28 11:12:20 :: 0 2011 :: 2011-03-28 11:12:20 :: 0 2012 :: 2012-03-28 11:12:20 :: 1 2013 :: 2013-03-28 11:12:20 :: 0 2014 :: 2014-03-28 11:12:20 :: 0 2015 :: 2015-03-28 11:12:20 :: 0 2016 :: 2016-03-28 11:12:20 :: 1 2017 :: 2017-03-28 11:12:20 :: 0 2018 :: 2018-03-28 11:12:20 :: 0 2019 :: 2019-03-28 11:12:20 :: 0 2020 :: 2020-03-28 11:12:20 :: 1

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:
30.59 ms | 405 KiB | 8 Q