3v4l.org

run code in 300+ PHP versions simultaneously
<?php $timestamp = strtotime('0000-02-20 00:00:00'); print $timestamp . "\n"; $date_time = date_create('@' . $timestamp); print_r($date_time); $timestamp = strtotime('0001-02-20 00:00:00'); print $timestamp . "\n"; $date_time = date_create('@' . $timestamp); print_r($date_time);
Output for git.master, git.master_jit, rfc.property-hooks
-62162900372 DateTime Object ( [date] => 0000-02-18 23:40:28.000000 [timezone_type] => 1 [timezone] => +00:00 ) -62131277972 DateTime Object ( [date] => 0001-02-19 23:40:28.000000 [timezone_type] => 1 [timezone] => +00:00 )

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.56 ms | 401 KiB | 8 Q