3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $_SESSION['condition2']="Fair"; $_SESSION['Price2']=1000; $difEVGa = 0.037019787; $difEVGb = 106.0487; $difVGGa = 0.051761002; $difVGGb = -63.184237910; $difGFa = 0.137099922; $difGFb = 161.241854782; if ($_SESSION['condition2'] =="Excellent") { $XCondition2= -((((((0)+((($difGFb+($_SESSION['Price2']-(0)))/(1-$difGFa))-($_SESSION['Price2']-(0)))*-1))+((($difVGGb+($_SESSION['Price2']-(((0)+((($difGFb+($_SESSION['Price2']-(0)))/(1-$difGFa))-($_SESSION['Price2']-(0)))*-1))))/(1-$difVGGa))-($_SESSION['Price2']-(((0)+((($difGFb+($_SESSION['Price2']-(0)))/(1-$difGFa))-($_SESSION['Price2']-(0)))*-1))))*-1))+((($difEVGb+($_SESSION['Price2']-(((((0)+((($difGFb+($_SESSION['Price2']-(0)))/(1-$difGFa))-($_SESSION['Price2']-(0)))*-1))+((($difVGGb+($_SESSION['Price2']-(((0)+((($difGFb+($_SESSION['Price2']-(0)))/(1-$difGFa))-($_SESSION['Price2']-(0)))*-1))))/(1-$difVGGa))-($_SESSION['Price2']-(((0)+((($difGFb+($_SESSION['Price2']-(0)))/(1-$difGFa))-($_SESSION['Price2']-(0)))*-1))))*-1))))/(1-$difEVGa))-($_SESSION['Price2']-(((((0)+((($difGFb+($_SESSION['Price2']-(0)))/(1-$difGFa))-($_SESSION['Price2']-(0)))*-1))+((($difVGGb+($_SESSION['Price2']-(((0)+((($difGFb+($_SESSION['Price2']-(0)))/(1-$difGFa))-($_SESSION['Price2']-(0)))*-1))))/(1-$difVGGa))-($_SESSION['Price2']-(((0)+((($difGFb+($_SESSION['Price2']-(0)))/(1-$difGFa))-($_SESSION['Price2']-(0)))*-1))))*-1))))*-1); } elseif ($_SESSION['condition2'] =="Very Good") { $XCondition2= ((((0)+((($difGFb+($_SESSION['Price2']-(0)))/(1-$difGFa))-($_SESSION['Price2']-(0)))*-1))+((($difVGGb+($_SESSION['Price2']-(((0)+((($difGFb+($_SESSION['Price2']-(0)))/(1-$difGFa))-($_SESSION['Price2']-(0)))*-1))))/(1-$difVGGa))-($_SESSION['Price2']-(((0)+((($difGFb+($_SESSION['Price2']-(0)))/(1-$difGFa))-($_SESSION['Price2']-(0)))*-1))))*-1); } elseif ($_SESSION['condition2'] =="Good") { $XCondition2=((0)+((($difGFb+($_SESSION['Price2']-(0)))/(1-$difGFa))-($_SESSION['Price2']-(0)))*-1); } else { $XCondition2="0"; } echo $XCondition2; ?>
based on BhWqi
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
0