Output of the "Creating a date object from a timestamp with PHP" PHP snippet

Environment:

  • Strangebuzz Snippet VM: 6.4.9
  • PHP: 8.4

Code execution output:

object(DateTime)#1835 (3) {
  ["date"]=>
  string(26) "2024-02-27 08:11:22.000000"
  ["timezone_type"]=>
  int(3)
  ["timezone"]=>
  string(12) "Europe/Paris"
}
string(25) "2024-02-27T08:11:22+01:00"

object(DateTime)#1840 (3) {
  ["date"]=>
  string(26) "2024-02-27 07:11:22.000000"
  ["timezone_type"]=>
  int(1)
  ["timezone"]=>
  string(6) "+00:00"
}
string(25) "2024-02-27T07:11:22+00:00"

object(DateTimeImmutable)#1839 (3) {
  ["date"]=>
  string(26) "2024-02-27 07:11:22.000000"
  ["timezone_type"]=>
  int(1)
  ["timezone"]=>
  string(6) "+00:00"
}
string(25) "2024-02-27T07:11:22+00:00"

object(Carbon\Carbon)#1887 (2) {
  ["date"]=>
  string(26) "2024-02-27 07:11:22.000000"
  ["timezone"]=>
  string(6) "+00:00"
}
string(25) "2024-02-27T07:11:22+00:00"