diff --git a/core/CliMulti/CliPhp.php b/core/CliMulti/CliPhp.php
index 1b164835d42bb1bfb3d96fcbc9d52fd1d6867055..9ee5b191b1b7c50af37bcfb852d795c9b77cd1d1 100644
--- a/core/CliMulti/CliPhp.php
+++ b/core/CliMulti/CliPhp.php
@@ -18,13 +18,13 @@ class CliPhp
     {
         if (defined('PHP_BINARY')) {
 
-            if ($this->isValidPhpType(PHP_BINARY)) {
-                return PHP_BINARY . ' -q';
-            }
-
             if ($this->isHhvmBinary(PHP_BINARY)) {
                 return PHP_BINARY . ' --php';
             }
+
+            if ($this->isValidPhpType(PHP_BINARY)) {
+                return PHP_BINARY . ' -q';
+            }
         }
 
         $bin = '';