<?php $date = new DateTime('last day of february this year'); print_r($date); $eh_bissexto = $date->format('d') === '29'; var_dump($eh_bissexto);
Standard input is empty
DateTime Object ( [date] => 2016-02-29 00:00:00.000000 [timezone_type] => 3 [timezone] => UTC ) bool(true)
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!