Это подойдет?
([a-z]+)[ =]*([0-9]*)
preg_match_all('/([a-z]+)[ =]*([0-9]*)/i', 'целое gg =665 j h = 78;', $result);
Array
(
[0] => Array
(
[0] => gg =665
[1] => j
[2] => h = 78
)
[1] => Array
(
[0] => gg
[1] => j
[2] => h
)
[2] => Array
(
[0] => 665
[1] =>
[2] => 78
)
)