3v4l.org

run code in 300+ PHP versions simultaneously
<?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.3.20, 5.4.0 - 5.4.10
Parse error: syntax error, unexpected '(', expecting ')' in huXm2 on line 3
Process exited with code 255.

preferences:
167.94 ms | 1395 KiB | 39 Q