Build condition comparison for if statement
Is this possible?

    $var_1 = 1;
    $var_2 = 10;
    $comparison = '>';
    
    if($var_1 $comparison $var_2) {
        // do something...
    }

The syntax right now is not valid but is there a way to do this? 
Build condition comparison for if statement
===

Is this possible?

    $var_1 = 1;
    $var_2 = 10;
    $comparison = '>';
    
    if($var_1 $comparison $var_2) {
        // do something...
    }

The syntax right now is not valid but is there a way to do this? 