3v4l.org

run code in 300+ PHP versions simultaneously
<?php $interval = new DateInterval('PT1S'); $interval->f = -0.000001; var_dump($interval->s, $interval->f); echo "\n"; $interval = unserialize(serialize($interval)); var_dump($interval->s, $interval->f);

preferences:
40.45 ms | 410 KiB | 5 Q