3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php if ($fecha == 'siempre' || !$fecha) { $extrawhere = array( "email[!]"=>null, "OR" => array( "estado" => array('A', 'N', 'D') ) ); } else { $extrawhere = array( "email[!]"=>null, "OR" => array( "estado" => array('A', 'N', 'D') ), "fecha_modificacion[>=]" => $fecha ); } print_r($extrawhere); ?>
based on o5e8s
Output for 5.0.4 - 5.6.21, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Notice: Undefined variable: fecha in /in/KnpSV on line 3 Notice: Undefined variable: fecha in /in/KnpSV on line 3 Array ( [email[!]] => [OR] => Array ( [estado] => Array ( [0] => A [1] => N [2] => D ) ) )
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: fecha in /in/KnpSV on line 3 Notice: Undefined variable: fecha in /in/KnpSV on line 3 Array ( [email[!]] => [OR] => Array ( [estado] => Array ( [0] => A [1] => N [2] => D ) ) )