3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $di = (new DateTime('2012-10-20'))->diff(new DateTime('2012-12-10')); print_r2((new DateTime('2015-09-30'))->add($di));
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Call to undefined function print_r2() in /in/XWOHn:5 Stack trace: #0 {main} thrown in /in/XWOHn on line 5
Process exited with code 255.
Output for 5.4.10 - 5.6.28
Fatal error: Call to undefined function print_r2() in /in/XWOHn on line 5
Process exited with code 255.
Output for 5.3.20 - 5.3.29
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /in/XWOHn on line 3
Process exited with code 255.