3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump( (new DateTime())->add('foobar') );
Output for 5.6.38 - 7.3.0rc3
Warning: DateTime::add() expects parameter 1 to be DateInterval, string given in /in/F7qsi on line 4 bool(false)