Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php declare(strict_types=1); $iso = 'R4/2012-07-01T00:00:00Z/P7D'; $dateTime = new DateP..

Decoded Output download

<?php
declare(strict_types=1);
$iso = 'R4/2012-07-01T00:00:00Z/P7D';
$dateTime = new DatePeriod($iso);
var_export($dateTime);
// Should emit PhanTypeMismatchReal due to DatePeriod->getStartDate having a tentative return type of DateTimeInterface in php 8.1
echo strlen($dateTime->getStartDate());
 ?>

Did this file decode correctly?

Original Code

<?php
declare(strict_types=1);
$iso = 'R4/2012-07-01T00:00:00Z/P7D';
$dateTime = new DatePeriod($iso);
var_export($dateTime);
// Should emit PhanTypeMismatchReal due to DatePeriod->getStartDate having a tentative return type of DateTimeInterface in php 8.1
echo strlen($dateTime->getStartDate());

Function Calls

None

Variables

None

Stats

MD5 3c28b3830d8a890288fb6348e08b95a0
Eval Count 0
Decode Time 98 ms