3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function getLastDay($mes = date('m'), $ano = date('Y')) { $data = $ano . '-' . $mes . '-' . '01'; return date('t', strtotime($data)); } echo getLastDay();
Output for 5.3.0 - 5.4.10
Parse error: syntax error, unexpected '(', expecting ')' in /in/huXm2 on line 3
Process exited with code 255.