3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(-1); $a[0] = get_cfg_var('date.timezone'); $a[1] = ini_get('date.timezone'); $a[2] = time(); // GMT/UTC $a[3] = 1610229269; // 21-01-09 21:54:29 GMT/UTC $a[4] = date('y-m-d H:i:s e T', $a[2]); $a[5] = substr($a[4], 0, 17); $a[6] = date('y-m-d H:i:s e T', strtotime($a[5], $a[2])); $a[7] = date_default_timezone_get(); date_default_timezone_set('UTC'); $a[8] = date('y-m-d H:i:s e T', $a[2]); var_dump(date('y-m-d H:i:s', $a[3]) == '21-01-09 21:54:29', $a[4] == $a[6], $a );
Output for git.master_jit, git.master, rfc.property-hooks
bool(true) bool(true) array(9) { [0]=> string(16) "Europe/Amsterdam" [1]=> string(16) "Europe/Amsterdam" [2]=> int(1746392770) [3]=> int(1610229269) [4]=> string(39) "25-05-04 23:06:10 Europe/Amsterdam CEST" [5]=> string(17) "25-05-04 23:06:10" [6]=> string(39) "25-05-04 23:06:10 Europe/Amsterdam CEST" [7]=> string(16) "Europe/Amsterdam" [8]=> string(25) "25-05-04 21:06:10 UTC 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:
45.94 ms | 406 KiB | 5 Q