3v4l.org

run code in 200+ PHP versions simultaneously
<?php $d = new \DateTime(); var_dump($d) ;var_dump($d->modify('+2 years'));
based on SesKo