3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php print_r((new DateTime("2016-04-17"))->modify("Friday this week"));
based on 3lQWd
Output for 7.0.20, 7.1.5 - 7.2.0
DateTime Object ( [date] => 2016-04-15 00:00:00.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.28, 7.1.0
DateTime Object ( [date] => 2016-04-11 00:00:00.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.4.30 - 5.6.21, 7.0.0 - 7.0.6
DateTime Object ( [date] => 2016-04-22 00:00:00.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.4.9 - 5.4.29
DateTime Object ( [date] => 2016-04-22 00:00:00 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.3.19 - 5.3.29
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /in/4YmMV on line 2
Process exited with code 255.