3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo converCompetencia("01"); function converteCompetencia($compet) { switch ($compet) { case '01': return 'Jan'; break; case '02': return 'Fev'; break; case '03': return 'Mar'; break; case '04': return 'Abr'; break; case '05': return 'Mai'; break; case '06': return 'Jun'; break; case '07': return 'Jul'; break; case '08': return 'Ago'; break; case '09': return 'Set'; break; case '10': return 'Out'; break; case '11': return 'Nov'; break; case '12': return 'Dez'; break; default: return '-'; break; } }
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Call to undefined function converCompetencia() in /in/lTD5r:3 Stack trace: #0 {main} thrown in /in/lTD5r on line 3
Process exited with code 255.
Output for 5.3.18 - 5.6.28
Fatal error: Call to undefined function converCompetencia() in /in/lTD5r on line 3
Process exited with code 255.