3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php date_default_timezone_set( 'America/Sao_Paulo' ); $mes = 07; $ano = 2014; $dias = cal_days_in_month(CAL_GREGORIAN, $mes, $ano); $ultimo = mktime(0, 0, 0, $mes, $dias, $ano); $dia = date("j", $ultimo); $dia_semana = date("w", $ultimo); if($dia_semana == 0){ $dia--; $dia--; } if($dia_semana == 6) $dia--; $ultimo = date("d/m/Y",mktime(0, 0, 0, $mes, $dia, $ano)); $hoje= date("d/m/Y"); if ($ultimo==$hoje) echo "verdadeiro"; else echo "falso";
based on DE1Ov

Shows result from various feature-branches currently under review from the php developers. Contact me to have additional branches featured.

Output for Typed properties v2
verdadeiro
Output for Array change keys
verdadeiro
Output for Lexical anon
verdadeiro

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page