<?php
$a = "1";
$a = 1;
$b = 1;
switch($a)
{
case $a * $b:
print "hi";
break;
case $a / $b:
print "hello";
break;
default:
print "hi1";
}
?><?php
$a = 97;
switch(?$a)
{
case "a":
print "hi";
break;
case 97:
print "hello";
break;
default:
print "hi1";
}
?><?php
$i = 5;
while (--$i > 0 && ++$i)
{
print $i;
}
?><?php
$i = 5;
while (--$i > 0 || ++$i)
{
print $i;
}
?><?php
$a = "hello";
if (strlen($a))
print strlen($a);
else
print "hi";
?><?php
$a = "1";
$b = "0";
if ((int)$a && $b)
print"hi";
else
print "hello";
?><?php
while()
{
print "hi";
}
?><?php
do
{
print "hi";
}
while(0);
print "hello";
?><?php
$b = 1;
switch($b)
{
case 1.0:
print "hi";
break;
case 1:
print "hello";
break;
default:
print "hi1";
}
?><?php
const $b = 1;
switch($b)
{
case 1:
print "hi";
break;
case 1:
print "hello";
break;
default:
print "hi1";
}
?><?php
$b = 1;
switch(print $b)
{
case 2:
print "hello";
break;
case 1:
print "hi";
break;
default:
print "hi1";
}
?><?phpspan>
$i = 0;
while(?++$i || --$i)
{
print $i;
}
?><?php
$a = "1";
switch ($a)
{
case 1:
print "hi";
case 2:
print "hello";
default:
print "hi1";
}
?><?php
$a = "2";
switch ($a)
{
case 1:
print "hi";
case 2:
print "hello";
break;
default:
print "hi1";
}
?><?php
$i = 0
while ($i < 3)
{
$i++;
}
print $i;
?><?php
$x = 1;
if ($x--)
print "hi"
$x--;
else
print "hello"
?><?php
$a = "1";
switch($a)
{
case 1:
break;
print "hi";
case 2:
print "hello";
break;
default:
print "hi1";
}
?><?php
$x = 1;
if ($x = $x& 0)
print $x ;
else
print "how are u";
?><?php
$x = 1;
if ($x = $x& 0)
print $x;
else
break;
?><?php
$x = 10;
$y = 5;
$z = 3;
if ($x / $y / $z)
print "hi";
else
print "hello";
?>