3v4l.org

run code in 300+ PHP versions simultaneously
<?php $iv = new DateInterval("PT1S"); $iv->f = -1.000000; var_dump($iv->f); $iv->f = -2.000000; var_dump($iv->f);

preferences:
32.36 ms | 404 KiB | 5 Q